[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: where the hell is itoa()?
- To: Shaul Karl <shaulka(at-nospam)bezeqint.net>
- Subject: Re: where the hell is itoa()?
- From: Ariel Biener <ariel(at-nospam)fireball.tau.ac.il>
- Date: Sat, 14 Jul 2001 22:57:04 +0300 (IDT)
- cc: b g <bgbg(at-nospam)md.huji.ac.il>, Linux-IL Mailing List <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <E15LVGj-0002QK-00@rakefet>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Sat, 14 Jul 2001, Shaul Karl wrote:
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *mychar;
int a=99999; /* Just some random number */
mychar=(char *)calloc(1, sizeof(int));
sprintf(mychar, "%d%c", a, '\0');
return 1;
}
This may be broken, but the idea is that standard C doesn't have itoa().
--Ariel
> > hi all!
> > maybe someone can tel me where the hel is itoa()?
> > I'm wrightingunder KDEvelop and despite the fact that i've #included
> > stdlib.h, i get "itoa undeclared" error.
> > any ideas?
> >thanks
> >
>
>
> itoa? Is that Integer to Ascii? Does it standard C?
>
> [22:37:40 tmp]$ man -k atoi
> apt.conf (5) - Configuratoin file for APT
> atoi (3) - convert a string to an integer.
> [22:37:46 tmp]$ man -k itoa
> itoa: nothing appropriate.
> [22:37:54 tmp]$
> --
>
> Shaul Karl <shaulka@bezeqint.net>
>
> Hillel used to say: If I am not for myself who will be for me?
> Yet, if I am for myself only, what am I? And if not now, when?
> (Ethics Of The Fathers 1:14)
>
>
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
--
Ariel Biener
e-mail: ariel@post.tau.ac.il
PGP(6.5.8) public key http://www.tau.ac.il/~ariel/pgp.html
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il