Mail Archives: djgpp/2001/05/10/14:01:29
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 -