[an error occurred while processing this directive]
|
Header File stdlib.h
Category Conversion Routines, Math Routines
Prototype
long strtol(const char *s, char **endptr, int radix);
Description
Converts a string to a long value.
strtol converts a character string, s, to a long integer value. s is a sequence of characters that can be interpreted as a long value; the characters must match this generic format:
[ws] [sn] [0] [x] [ddd]
where:
[ws] = optional whitespace
[sn] = optional sign (+ or -)
[0] = optional zero (0)
[x] = optional x or X
[ddd] = optional digits
strtol stops reading the string at the first character it doesn't recognize.
If radix is between 2 and 36, the long integer is expressed in base radix. If radix is 0, the first few characters of s determine the base of the value being converted.
E-mail: info@telesys.ru