USB device can now be unbind
[AROS.git] / compiler / stdc / atoll.c
blob55a5ff7e9a847d580c60e037dcf655361ba7e049
1 /*
2 Copyright © 1995-2018, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function atoll().
6 */
8 #include <aros/system.h>
9 #if defined(AROS_HAVE_LONG_LONG)
10 /*****************************************************************************
12 NAME */
13 #include <stdlib.h>
15 long long atoll (
17 /* SYNOPSIS */
18 const char * str)
20 /* FUNCTION
21 Convert a string of digits into an long long integer.
23 INPUTS
24 str - The string which should be converted. Leading
25 whitespace are ignored. The number may be prefixed
26 by a '+' or '-'.
28 RESULT
29 The value of string str.
31 NOTES
33 EXAMPLE
34 // returns 1
35 atoll (" \t +1");
37 // returns 1
38 atoll ("1");
40 // returns -1
41 atoll (" \n -1");
43 BUGS
45 SEE ALSO
46 atof(), atoi(), atol(), strtod(), strtol(), strtoul()
48 INTERNALS
50 ******************************************************************************/
52 return strtoll(str, (char **)NULL, 10);
53 } /* atoll */
55 #endif /* AROS_HAVE_LONG_LONG */