Date: Thu, 10 May 2001 20:46:22 +0300 (WET) From: Andris Pavenis To: Stefan Viljoen 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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