Re: itoa() unresolved
| From: | Sascha Schumann | Date: | Mon, 01 Feb 1999 15:13:09 +0000 |
| Subject: | Re: itoa() unresolved | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-3825@lists.php.net to get a copy of this message | ||
On Mon, Feb 01, 1999 at 09:02:50AM -0600, Michael Brennen wrote:
>
> On the latest CVS I'm getting an unresolved itoa() in unified_odbc.c,
> line 1769, when Apache finally links. This is on a Suse linux 5.3
> system. Adding -lc to the EXTRA_LIBS does not fix it, though I can
> find a reference to it in libc.a.
>
> I vaguely remember some question about itoa() from my C days a number
> of years ago; is this even a valid function? I was never sure about
> that one.
It is not a ANSI conforming function. Maybe someone has a good workaround
which is also thread safe:
char *
itoa(int n)
{
static char buf[100];
sprintf(buf, "%d", n);
return buf;
}
--
Regards,
Sascha Schumann |
Consultant | finger sas@schell.de
| for PGP public key
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net