delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/10/14:17:31

Message-ID: <5BF60CD649EDD411A04600B0D049F53A54423D@hydmail02.hyd.wilco-int.com>
From: Prashant Ramachandra <rprash AT wilco-int DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: RE: Why does DJGPP support itoa() but Linux does not?
Date: Thu, 10 May 2001 23:44:39 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

On Thursday, May 10, 2001 10:53 PM, Stefan Viljoen
[SMTP:Stefan_Viljoen AT excite DOT com] wrote:
| 
| I am using Redhat 6.0 - there seems to be not itoa() in Linux? I am
| saying
| this as DJGPP (also based on GCC) supports the itoa() func in
| stdlib?

That's to make it compatible with MSDOS compilers like Turbo C.

| How do I convert an integer to a string in a Linux C program?

Use sprintf.
--
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/

The greatest thing is not getting to the top, but remaining onself in the
process.


- Raw text -


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