From sowmi99@yahoo.com Tue Nov 4 18:00:32 2003 Received: from web13206.mail.yahoo.com (web13206.mail.yahoo.com [216.136.174.191]) by zope.computerbank.org.au (8.12.10/8.12.10/Debian-1) with SMTP id hA49xsj1026936 for ; Tue, 4 Nov 2003 18:00:30 +0800 Message-ID: <20031104095948.56972.qmail@web13206.mail.yahoo.com> Received: from [203.90.93.228] by web13206.mail.yahoo.com via HTTP; Tue, 04 Nov 2003 01:59:48 PST From: "sowmya.k" To: linuxcprogramming@lists.linux.org.au MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1426421863-1067939988=:56514" Subject: [LCP]Reg file handling in C using Linux Sender: linuxcprogramming-admin@lists.linux.org.au Errors-To: linuxcprogramming-admin@lists.linux.org.au X-BeenThere: linuxcprogramming@lists.linux.org.au X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: linuxcprogramming@lists.linux.org.au List-Unsubscribe: , List-Id: Linux C Programming List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue Nov 4 18:01:01 2003 X-Original-Date: Tue, 4 Nov 2003 01:59:48 -0800 (PST) --0-1426421863-1067939988=:56514 Content-Type: text/plain; charset=us-ascii Thanx a ton to all those who helped me in making my communication between 2 systems using null modem cable. I could now get the data easily and now my other problem is Iam getting the same data several times at a faster rate with more number of blank spaces and carriage returns.. I wrote all these datas in a seperate file and I want to delete these carriage returns(\r). How should I write my coding in order to achive this . Thanking you, sowmya --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard --0-1426421863-1067939988=:56514 Content-Type: text/html; charset=us-ascii
Thanx a ton to all those who helped me in making my communication between 2 systems using null modem cable. I could now get the data easily and now my other problem is Iam getting the same data several times at a faster rate with more number of blank spaces and carriage returns..
   I wrote all these datas in a seperate file and I want to delete these carriage returns(\r).
 
How should I write my coding in order to achive this .
 
Thanking you,
sowmya


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard --0-1426421863-1067939988=:56514-- From lloy0076@adam.com.au Tue Nov 4 18:28:33 2003 Received: from postit.mail.adnap.net.au (postit.mail.adnap.net.au [203.6.132.68]) by zope.computerbank.org.au (8.12.10/8.12.10/Debian-1) with ESMTP id hA4AS1j1029893 for ; Tue, 4 Nov 2003 18:28:33 +0800 Received: from mordor.middlearth.net.au (unknown [202.136.96.134]) by postit.mail.adnap.net.au (Postfix) with SMTP id B7A681D9C9; Tue, 4 Nov 2003 20:58:00 +1030 (CST) From: David Lloyd To: linuxcprogramming@lists.linux.org.au Cc: sowmi99@yahoo.com Subject: Re: [LCP]Reg file handling in C using Linux Message-Id: <20031104210906.47a7ea5b.lloy0076@adam.com.au> In-Reply-To: <20031104095948.56972.qmail@web13206.mail.yahoo.com> References: <20031104095948.56972.qmail@web13206.mail.yahoo.com> Organization: David Lloyd X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linuxcprogramming-admin@lists.linux.org.au Errors-To: linuxcprogramming-admin@lists.linux.org.au X-BeenThere: linuxcprogramming@lists.linux.org.au X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: linuxcprogramming@lists.linux.org.au List-Unsubscribe: , List-Id: Linux C Programming List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue Nov 4 18:29:02 2003 X-Original-Date: Tue, 4 Nov 2003 21:09:06 +1030 Do you have any sample code of what you've tried? DSL From david.w.spencer@oracle.com Wed Nov 5 00:55:34 2003 Received: from inet-mail4.oracle.com (inet-mail4.oracle.com [148.87.2.204]) by zope.computerbank.org.au (8.12.10/8.12.10/Debian-1) with ESMTP id hA4Gsuj2006218 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Wed, 5 Nov 2003 00:55:34 +0800 Received: from rgmgw6.us.oracle.com (rgmgw6.us.oracle.com [138.1.191.15]) by inet-mail4.oracle.com (Switch-3.1.2/Switch-3.1.0) with ESMTP id hA4GsnxT004438 for ; Tue, 4 Nov 2003 08:54:50 -0800 (PST) Received: from rgmgw6.us.oracle.com (localhost [127.0.0.1]) by rgmgw6.us.oracle.com (Switch-2.1.5/Switch-2.1.0) with ESMTP id hA4GslP04671 for ; Tue, 4 Nov 2003 09:54:47 -0700 (MST) Received: from oracle.com (DHCP-TVP550-151-113.uk.oracle.com [138.3.151.113]) by rgmgw6.us.oracle.com (Switch-2.1.5/Switch-2.1.0) with ESMTP id hA4GsjP04603 for ; Tue, 4 Nov 2003 09:54:45 -0700 (MST) Message-ID: <3FA7D9B4.30308@oracle.com> From: David Spencer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: linuxcprogramming@lists.linux.org.au Subject: Re: [LCP]Reg file handling in C using Linux References: <20031104095948.56972.qmail@web13206.mail.yahoo.com> In-Reply-To: <20031104095948.56972.qmail@web13206.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linuxcprogramming-admin@lists.linux.org.au Errors-To: linuxcprogramming-admin@lists.linux.org.au X-BeenThere: linuxcprogramming@lists.linux.org.au X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: linuxcprogramming@lists.linux.org.au List-Unsubscribe: , List-Id: Linux C Programming List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed Nov 5 00:56:02 2003 X-Original-Date: Tue, 04 Nov 2003 16:54:12 +0000 Removing 0x0d and 0x0a and multiple ' 's from a string is trivial - a simple for loop should do this - like strcpy but don't increment one of the pointers if the character pointed at is one of the above, or something like that. If you've already done some comms stuff this should be a complete walk in the park - why are you bothering to ask? Dave. sowmya.k wrote: > Thanx a ton to all those who helped me in making my communication > between 2 systems using null modem cable. I could now get the data > easily and now my other problem is Iam getting the same data several > times at a faster rate with more number of blank spaces and carriage > returns.. > I wrote all these datas in a seperate file and I want to delete > these carriage returns(\r). > > How should I write my coding in order to achive this . > > Thanking you, > sowmya > ------------------------------------------------------------------------ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > From dev@amlr.cjb.net Tue Nov 25 01:45:53 2003 Received: from home01.amlr.cjb.net (200-232-203-15.dsl.telesp.net.br [200.232.203.15] (may be forged)) by zope.computerbank.org.au (8.12.10/8.12.10/Debian-1) with ESMTP id hAOHjBj1029862 for ; Tue, 25 Nov 2003 01:45:52 +0800 Received: from home03.amlr.cjb.net (localhost.amlr.cjb.net [127.0.0.1]) by home01.amlr.cjb.net (8.11.6p2/linuxconf) with ESMTP id hAOHXNB05783 for ; Mon, 24 Nov 2003 14:33:23 -0300 From: Alexandre Aguiar To: linuxcprogramming@lists.linux.org.au User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311241433.21949.dev@amlr.cjb.net> Subject: [LCP]Math problems Sender: linuxcprogramming-admin@lists.linux.org.au Errors-To: linuxcprogramming-admin@lists.linux.org.au X-BeenThere: linuxcprogramming@lists.linux.org.au X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: linuxcprogramming@lists.linux.org.au List-Unsubscribe: , List-Id: Linux C Programming List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue Nov 25 01:46:02 2003 X-Original-Date: Mon, 24 Nov 2003 14:33:21 -0200 Hi, The following code will compile fine but won't link. Error message: undefined reference to 'pow'. --------8><------------------------ #include double or_ci_limit(double a, double b, double c, double d, double z, double orc) { return orc * pow( M_E, ( z * sqrt( 1/a + 1/b + 1/c + 1/d ) ) ); } --------8><------------------------ The prefered 'exp' function will fail with the same message. --------8><------------------------ #include double or_ci_limit(double a, double b, double c, double d, double z, double orc) { return orc * exp ( z * sqrt( 1/a + 1/b + 1/c + 1/d ) ); } --------8><------------------------ It is plain ansi code and both functions are standard ansi functions. The 'exp' version compiled and linked fine with VC5 (windows thing) and correctly computes the confidence limits of an odds ratio (purpose of my small program. I'd appreciate any effective help. -- Alexandre Aguiar From gjb@gbch.net Tue Nov 25 03:46:43 2003 Received: from gw.gbch.net (w0h1xn@gw.gbch.net [203.143.238.93]) by zope.computerbank.org.au (8.12.10/8.12.10/Debian-1) with SMTP id hAOJkDj1010004 for ; Tue, 25 Nov 2003 03:46:42 +0800 Received: (qmail 58079 invoked by uid 1001); 25 Nov 2003 05:46:07 +1000 Message-ID: From: Greg Black To: linuxcprogramming@lists.linux.org.au Subject: Re: [LCP]Math problems References: <200311241433.21949.dev@amlr.cjb.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200311241433.21949.dev@amlr.cjb.net> User-Agent: Mutt/1.4.1i; gjb-muttsend.sh 1.5 2003-10-01 X-Uptime: 3 days X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-PGP-Key-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-Request-PGP: http://www.gbch.net/keys/4B04B7D6.asc Sender: linuxcprogramming-admin@lists.linux.org.au Errors-To: linuxcprogramming-admin@lists.linux.org.au X-BeenThere: linuxcprogramming@lists.linux.org.au X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: linuxcprogramming@lists.linux.org.au List-Unsubscribe: , List-Id: Linux C Programming List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue Nov 25 03:47:01 2003 X-Original-Date: Tue, 25 Nov 2003 05:46:06 +1000 On 2003-11-24, Alexandre Aguiar wrote: > The following code will compile fine but won't link. Error message: undefined > reference to 'pow'. RTFM, in this case math(3m), and you'll see that you need to add the "-lm" argument to your link command line. Greg From sowmi99 at yahoo.com Tue Nov 4 18:01:01 2003 From: sowmi99 at yahoo.com (sowmya.k) Date: Tue Nov 4 18:01:01 2003 Subject: [LCP]Reg file handling in C using Linux Message-ID: <20031104095948.56972.qmail@web13206.mail.yahoo.com> Thanx a ton to all those who helped me in making my communication between 2 systems using null modem cable. I could now get the data easily and now my other problem is Iam getting the same data several times at a faster rate with more number of blank spaces and carriage returns.. I wrote all these datas in a seperate file and I want to delete these carriage returns(\r). How should I write my coding in order to achive this . Thanking you, sowmya --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20031104/50f4eaca/attachment.htm From lloy0076 at adam.com.au Tue Nov 4 18:29:02 2003 From: lloy0076 at adam.com.au (David Lloyd) Date: Tue Nov 4 18:29:02 2003 Subject: [LCP]Reg file handling in C using Linux In-Reply-To: <20031104095948.56972.qmail@web13206.mail.yahoo.com> References: <20031104095948.56972.qmail@web13206.mail.yahoo.com> Message-ID: <20031104210906.47a7ea5b.lloy0076@adam.com.au> Do you have any sample code of what you've tried? DSL From david.w.spencer at oracle.com Wed Nov 5 00:56:02 2003 From: david.w.spencer at oracle.com (David Spencer) Date: Wed Nov 5 00:56:02 2003 Subject: [LCP]Reg file handling in C using Linux In-Reply-To: <20031104095948.56972.qmail@web13206.mail.yahoo.com> References: <20031104095948.56972.qmail@web13206.mail.yahoo.com> Message-ID: <3FA7D9B4.30308@oracle.com> Removing 0x0d and 0x0a and multiple ' 's from a string is trivial - a simple for loop should do this - like strcpy but don't increment one of the pointers if the character pointed at is one of the above, or something like that. If you've already done some comms stuff this should be a complete walk in the park - why are you bothering to ask? Dave. sowmya.k wrote: > Thanx a ton to all those who helped me in making my communication > between 2 systems using null modem cable. I could now get the data > easily and now my other problem is Iam getting the same data several > times at a faster rate with more number of blank spaces and carriage > returns.. > I wrote all these datas in a seperate file and I want to delete > these carriage returns(\r). > > How should I write my coding in order to achive this . > > Thanking you, > sowmya > ------------------------------------------------------------------------ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > From dev at amlr.cjb.net Tue Nov 25 01:46:02 2003 From: dev at amlr.cjb.net (Alexandre Aguiar) Date: Tue Nov 25 01:46:02 2003 Subject: [LCP]Math problems Message-ID: <200311241433.21949.dev@amlr.cjb.net> Hi, The following code will compile fine but won't link. Error message: undefined reference to 'pow'. --------8><------------------------ #include double or_ci_limit(double a, double b, double c, double d, double z, double orc) { return orc * pow( M_E, ( z * sqrt( 1/a + 1/b + 1/c + 1/d ) ) ); } --------8><------------------------ The prefered 'exp' function will fail with the same message. --------8><------------------------ #include double or_ci_limit(double a, double b, double c, double d, double z, double orc) { return orc * exp ( z * sqrt( 1/a + 1/b + 1/c + 1/d ) ); } --------8><------------------------ It is plain ansi code and both functions are standard ansi functions. The 'exp' version compiled and linked fine with VC5 (windows thing) and correctly computes the confidence limits of an odds ratio (purpose of my small program. I'd appreciate any effective help. -- Alexandre Aguiar From gjb at gbch.net Tue Nov 25 03:47:01 2003 From: gjb at gbch.net (Greg Black) Date: Tue Nov 25 03:47:01 2003 Subject: [LCP]Math problems In-Reply-To: <200311241433.21949.dev@amlr.cjb.net> References: <200311241433.21949.dev@amlr.cjb.net> Message-ID: On 2003-11-24, Alexandre Aguiar wrote: > The following code will compile fine but won't link. Error message: undefined > reference to 'pow'. RTFM, in this case math(3m), and you'll see that you need to add the "-lm" argument to your link command line. Greg