7 unsigned long ret = strtoul(str, &tmp, 10);
8 if((str == tmp) || (*tmp !=
'\0'))
18 unsigned long ret = 0;
26 if(ret && (((ULONG_MAX + 10) / ret) < 10))
41 char *
int_strstr(
const char *haystack,
const char *needle)
43 const char *sub_haystack = haystack, *sub_needle = needle;
44 unsigned int offset = 0;
49 while((*sub_haystack !=
'\0') && (*sub_needle !=
'\0')) {
50 if(sub_haystack[offset] == sub_needle) {
61 if(*sub_haystack ==
'\0')