C/stdlib.h/strtoul


Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803

Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Материал из C\C++ эксперт
Перейти к: навигация, поиск

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

    
    
//Header:     #include <stdlib.h>  
//Declaration:  unsigned long int strtoul(const char *start, char **end, int radix); 
 
#include <stdlib.h>
int main(void){
    char *start, *end;
    char a[100];
    end = a;
    *start= "12341234";
    printf("%d", strtoul(start, &end, 8));
}
         
/*0*/