Description
you will know this problem when you look at this function, if input parameter s is '1234567', then first char is '', the for loop will breaks, the this function return 0 to you.
the function is :
AXIS2_EXTERN int64_t AXIS2_CALL
axutil_strtol(
const char *s,
char **endptr,
int base)
{
int i;
int64_t n;
n = 0;
for (i = 0; s[i] >= '0' && s[i] <= '9'; ++i)
if(endptr != NULL)
{ *endptr = (char *)(s + i); } return n;
}