delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Why does DJGPP support itoa() but Linux does not? |
Date: | 10 May 2001 17:46:34 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 23 |
Message-ID: | <9dek5q$c6s$1@nets3.rz.RWTH-Aachen.DE> |
References: | <9deict$4jk$2 AT ctb-nnrp2 DOT saix DOT net> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 989516794 12508 137.226.32.75 (10 May 2001 17:46:34 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 10 May 2001 17:46:34 GMT |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Stefan Viljoen <Stefan_Viljoen AT excite DOT com> wrote: > I am using Redhat 6.0 - there seems to be not itoa() in Linux? itoa() is a DOSism, which exists in DJGPP only for the sake of compatibility to older DOS compilers. For bases 8, 10 or 16, and portable programs, you should use sprintf() instead. Otherwise, you have to provide your own implementation of itoa() and use that if there is none in the libc. You could have guessed that from the libc documentation. "info libc alpha itoa" contains this: Portability ----------- not ANSI, not POSIX -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |