C/stdlib.h/strtoul — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
м (1 версия: Импорт контента...)
 
(нет различий)

Текущая версия на 13:23, 25 мая 2010

strtoul: converts the string into an unsigned long int according to the base of the number

<source lang="cpp">


//Header: #include <stdlib.h> //Declaration: unsigned long int strtoul(const char *start, char **end, int radix);

  1. include <stdlib.h>

int main(void){

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

}

/*0*/

      </source>