#include <stdlib.h> unsigned long strtoul(const char *s, char **endp, int base);
This is just like strtol
(see section strtol) except that the result
is unsigned.
The value.
ANSI, POSIX
printf("Enter a number: "); fflush(stdout); gets(buf); char *bp; printf("The value is %u\n", strtoul(buf, &bp, 0));
Go to the first, previous, next, last section, table of contents.