purge remaining gpl code from clib, and make clib build again
[tangerine.git] / compiler / clib / atol.c
blobea1dc0c60a4ce9adf3c0704f07c4e25b63e57064
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function atol().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <stdlib.h>
13 long atol (
15 /* SYNOPSIS */
16 const char * str)
18 /* FUNCTION
19 Convert a string of digits into an long integer.
21 INPUTS
22 str - The string which should be converted. Leading
23 whitespace are ignored. The number may be prefixed
24 by a '+' or '-'.
26 RESULT
27 The value of string str.
29 NOTES
31 EXAMPLE
32 // returns 1
33 atol (" \t +1");
35 // returns 1
36 atol ("1");
38 // returns -1
39 atol (" \n -1");
41 BUGS
43 SEE ALSO
44 atof(), atoi(), strtod(), strtol(), strtoul()
46 INTERNALS
48 ******************************************************************************/
50 return strtol (str, (char **)NULL, 10);
51 } /* atol */