Welcome, Guest. Please login or register.

Author Topic: itoa && ltoa in VBCC  (Read 2279 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: itoa && ltoa in VBCC
« on: September 09, 2005, 09:41:40 PM »
You should go to http://sun.hasenbraten.de/vbcc/ and open a bug report.

Nevertheless I would use one of these:

Code: [Select]

long atol (char *s)

{
long i = 0;

sscanf (s,"%ld",&i);

return (i);
}



Code: [Select]

long atol (char *s)

{
long i = 0;

while (*s >= '0' && *s <= '9')
{
i = (i * 10) + (*s - '0');
s ++;
}

return (i);
}