3 atof, atoi, atol, atoll, charstod, strtod, strtol, strtoll, strtoul, strtoull \- convert text to numbers
12 double atof(char *nptr)
21 vlong atoll(char *nptr)
24 double charstod(int (*f)(void *), void *a)
27 double strtod(char *nptr, char **rptr)
30 long strtol(char *nptr, char **rptr, int base)
33 vlong strtoll(char *nptr, char **rptr, int base)
36 ulong strtoul(char *nptr, char **rptr, int base)
39 uvlong strtoull(char *nptr, char **rptr, int base)
47 convert a string pointed to by
49 to floating, integer, long integer, and long long integer
51 representation respectively.
52 The first unrecognized character ends the string.
53 Leading C escapes are understood, as in
57 zero (described below).
60 recognizes an optional string of tabs and spaces,
61 then an optional sign, then
62 a string of digits optionally containing a decimal
63 point, then an optional
68 by an optionally signed integer.
73 recognize an optional string of tabs and spaces,
74 then an optional sign, then a string of
91 to point to the input character
92 immediately after the string converted.
99 interpret the digit string in the specified
102 each digit being less than the base.
103 Digits with value over 9 are represented by letters,
107 is 0, the input is interpreted as an integral constant in
108 the style of C (with no suffixed type indicators):
109 numbers are octal if they begin with
111 hexadecimal if they begin with
118 interprets floating point numbers in the manner of
120 but gets successive characters by calling
124 terminates the scan, so it must have returned a character that
125 is not a legal continuation of a number.
126 Therefore, it may be necessary to back up the input stream one character
130 .B /sys/src/libc/port
134 Zero is returned if the beginning of the input string is not
135 interpretable as a number; even in this case,
143 accept octal and hexadecimal numbers in the style of C,
144 contrary to the ANSI specification.