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

Date: Thu, 10 May 2001 20:46:22 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Stefan Viljoen <Stefan_Viljoen AT excite DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Why does DJGPP support itoa() but Linux does not?
In-Reply-To: <9deict$4jk$2@ctb-nnrp2.saix.net>
Message-ID: <Pine.A41.4.05.10105102042430.40432-100000@ieva06.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Thu, 10 May 2001, Stefan Viljoen wrote:

> Hi!
> 
> 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?
> 
> How do I convert an integer to a string in a Linux C program?
> 
> I realise this is not DJGPP related but I have used itoa() successfully in
> DJGPP programs, but using it in a Linux program just brings up the "implicit
> declaration of function" error even when including stdlib.h i. e. it does
> not exist in the linux stdlib?
> 
> I've got a big problem with this, 'cause my DJGPP compiled code won't
> translate to Linux as it seems to miss some functions that are in the DJGPP
> stdlib.h?

See portability section:
	info libc a itoa

Simply don't use non portable functions

Andris


- Raw text -


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