Mail Archives: djgpp/1996/11/16/03:23:16
From: | Erik Max Francis <max AT alcyone DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Long -> String
|
Date: | Fri, 15 Nov 1996 23:02:07 -0800
|
Organization: | Alcyone Systems
|
Lines: | 19
|
Message-ID: | <328D66EF.BB46099@alcyone.com>
|
References: | <328CDB1A DOT 7F2E AT abc DOT se>
|
NNTP-Posting-Host: | newton.alcyone.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Henrik B=E4=E4rnhielm wrote:
> Is there a library function that convert a long to a string? In for
> example Turbo C++ 3.0 which I have coded in pretty much, there are ultoa
> that converts unsigned long to string and gcvt that converts float to
> string. I have looked in the library reference but I can't find
> something that does that.
Use sscanf. It is ANSI C, and guaratneed to work. [u]ltoa are
Borland-specific and non-standard.
-- =
Erik Max Francis | max AT alcyone DOT com
Alcyone Systems | http://www.alcyone.com/max/=
San Jose, California | 37 20 07 N 121 53 38 W
&tSftDotIotE | R^4: the 4th R is respect
"But since when can wounded eyes see | If we weren't who we were"
- Raw text -