Mega Code Archive

 
Categories / C Tutorial / Stdlib h
 

Strtoull

Item Value Header filestdlib.h Declarationunsigned long long int strtoull(const char *restrict start, char **restrict end, int radix); Functionsimilar to strtoul() except that it returns an unsigned long long int. If the result cannot be represented as an unsigned long integer, ULLONG_MAX is returned If *start is a number, no conversion takes place and zero is returned. #include <stdlib.h> int main(void){     char *start, *end;     char a[100];     end = a;     *start= "12341234";     printf("%d", strtoull(start, &end, 8)); }