home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!stanford.edu!agate!overload.lbl.gov!prem.lbl.gov!prem
- From: prem@prem.lbl.gov (Shirdi R. Prem)
- Subject: Re: Convert float to a string ?
- Message-ID: <1992Aug20.225133.12163@overload.lbl.gov>
- Sender: usenet@overload.lbl.gov
- Nntp-Posting-Host: prem.lbl.gov
- Reply-To: prem@prem.lbl.gov (Shirdi R. Prem)
- Organization: Lawrence Berkeley Laboratory
- References: <1992Aug19.212749.21008@overload.lbl.gov> <1992Aug20.172112.1564@tin.monsanto.com>
- Date: Thu, 20 Aug 1992 22:51:33 GMT
- Lines: 23
-
- In article <1992Aug20.172112.1564@tin.monsanto.com> bcschu@skws02.monsanto.com (Brett Schultz) writes:
- >prem@prem.lbl.gov (Shirdi R. Prem) writes:
- >: In article <1992Aug19.204417.13500@tin.monsanto.com> bcschu@skws02.monsanto.com (Brett Schultz) writes:
- >:
- >: sprintf(b,"%f\0",a);
- >: ^^^^^^
- >: ^^^^^^
- >:
- >: Are you sure you need a '\0' here............???
- >:
- >: Prem! (I guess I should've written a test program to find out, )
- >: ( rather than posting this.......... )
-
- >No, I'm not sure if one NEEDS a \0 there, but it surely doesn't hurt to put
- >one there, now you KNOW that your string is null terminated.
- >Let me know if sprintf puts one there anyway, I wasn't sure.
- >Brett
-
- Yes. It does.
-
- -Prem!
-
-
-