www.delorie.com/djgpp/doc/libc-2.01/libc_628.html   search  
Go to the first, previous, next, last section, table of contents.


strtoul

Syntax

#include <stdlib.h>

unsigned long strtoul(const char *s, char **endp, int base);

Description

This is just like strtol (see section strtol) except that the result is unsigned.

Return Value

The value.

Example

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.

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 1997   by DJ Delorie     Updated Apr 1997  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)