www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/29/23:20:02

Xref: news2.mv.net comp.os.msdos.djgpp:3259
From: John D Doty <doty+@andrew.cmu.edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: atoi <> itoa (?)
Date: Mon, 29 Apr 1996 01:06:58 -0400
Organization: Freshman, Physics, Carnegie Mellon, Pittsburgh, PA
Lines: 21
Message-ID: <AlV4tme00iWV4FY1gK@andrew.cmu.edu>
References: <3183E793 DOT 1ED4 AT algonet DOT se>
NNTP-Posting-Host: po9.andrew.cmu.edu
In-Reply-To: <3183E793.1ED4@algonet.se>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Excerpts from netnews.comp.os.msdos.djgpp: 28-Apr-96 atoi <> itoa (?) by
Rikard Thunberg AT algonet. 
>I need the reverse function of atoi(), say itoa() for UNIX and MSDOS (djgpp). 
>Unfortunately, I can't find such 
>function (ANSI C).
>Please help.

Try using sprintf.  (sprintf (string, "%d", int);)

                                                John
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
John Doty                      |"We can fly- We have wings...
Anime Fan, Programmer-at-large | We can touch floating dreams...."-Macross +
doty AT andrew DOT cmu DOT edu	       |"The deepness of one's sorrow upon parting
http://bifrost.res.cmu.edu/    | is the evidence of the deepness of one's
     |         v        @      | love, so... if one fears sadness, one
    ^_^       ^_^      ^_^     | wouldn't be able to love anything."
  Belldandy   Urd     Skuld    |       -Belldandy, "Don't fear sorrow"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
   

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019