C Tutorial/stdlib.h/strtoull

Материал из C\C++ эксперт
Перейти к: навигация, поиск

strtoull

Item Value Header file stdlib.h Declaration unsigned long long int strtoull(const char *restrict start, char **restrict end, int radix); Function similar to strtoul() except that it returns an unsigned long long int.

  1. If the result cannot be represented as an unsigned long integer, ULLONG_MAX is returned
  2. If *start is a number, no conversion takes place and zero is returned.


<source lang="cpp">#include <stdlib.h> int main(void){

   char *start, *end;
   char a[100];
   end = a;
   *start= "12341234";
   printf("%d", strtoull(start, &end, 8));

}</source>