| www.delorie.com/djgpp/doc/libc-2.01/libc_50.html | search |
#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.
main(int argc, char **argv)
{
long l = atol(argv[1]);
...
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |