delorie.com/djgpp/doc/libc/libc_55.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <stdlib.h> long atol(const char *string); |
Convert as much of the string as possible to an equivalent long integer value.
This function is almost like strtol(string, NULL, 10)
(see section strtol).
The equivalent value, or zero if the string does not represent a number.
ANSI/ISO C | C89; C99 |
POSIX | 1003.2-1992; 1003.1-2001 |
main(int argc, char **argv) { long l = atol(argv[1]); ... |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |