Searched refs:endptr (Results 1 - 25 of 104) sorted by relevance

12345

/freebsd-9.3-release/lib/libutil/
H A Dexpand_number.c54 char *endptr; local
56 number = strtoumax(buf, &endptr, 0);
58 if (endptr == buf) {
64 switch (tolower((unsigned char)*endptr)) {
/freebsd-9.3-release/lib/libc/locale/
H A Dwcstod.c50 wcstod_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
79 if (endptr != NULL)
80 *endptr = (wchar_t *)nptr;
97 if (endptr != NULL) {
99 *endptr = (wchar_t *)nptr + (end - buf);
101 *endptr += spaces;
110 wcstod(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) argument
112 return wcstod_l(nptr, endptr, __get_locale());
H A Dwcstold.c44 wcstold_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
64 if (endptr != NULL)
65 *endptr = (wchar_t *)nptr;
75 if (endptr != NULL) {
77 *endptr = (wchar_t *)nptr + (end - buf);
79 *endptr += spaces;
87 wcstold(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) argument
89 return wcstold_l(nptr, endptr, __get_locale());
H A Dwcstof.c44 wcstof_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
61 if (endptr != NULL)
62 *endptr = (wchar_t *)nptr;
72 if (endptr != NULL)
73 *endptr = (wchar_t *)nptr + (end - buf);
80 wcstof(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr) argument
82 return wcstof_l(nptr, endptr, __get_locale());
H A Dwcstol.c49 wcstol_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int argument
122 if (endptr != NULL)
123 *endptr = (wchar_t *)(any ? s - 1 : nptr);
127 wcstol(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument
129 return wcstol_l(nptr, endptr, base, __get_locale());
H A Dwcstoll.c55 wcstoll_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
128 if (endptr != NULL)
129 *endptr = (wchar_t *)(any ? s - 1 : nptr);
133 wcstoll(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument
135 return wcstoll_l(nptr, endptr, base, __get_locale());
H A Dwcstoul.c49 wcstoul_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
120 if (endptr != NULL)
121 *endptr = (wchar_t *)(any ? s - 1 : nptr);
125 wcstoul(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument
127 return wcstoul_l(nptr, endptr, base, __get_locale());
H A Dwcstoull.c55 wcstoull_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
126 if (endptr != NULL)
127 *endptr = (wchar_t *)(any ? s - 1 : nptr);
131 wcstoull(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
134 return wcstoull_l(nptr, endptr, base, __get_locale());
H A Dwcstoumax.c55 wcstoumax_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
126 if (endptr != NULL)
127 *endptr = (wchar_t *)(any ? s - 1 : nptr);
131 wcstoumax(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, argument
134 return wcstoumax_l(nptr, endptr, base, __get_locale());
/freebsd-9.3-release/lib/libc/stdlib/
H A Dstrtoq.c44 strtoq(const char *nptr, char **endptr, int base) argument
47 return strtoll(nptr, endptr, base);
H A Dstrtouq.c44 strtouq(const char *nptr, char **endptr, int base) argument
47 return strtoull(nptr, endptr, base);
H A Dstrtol.c55 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument
145 if (endptr != NULL)
146 *endptr = (char *)(any ? s - 1 : nptr);
150 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) argument
152 return strtol_l(nptr, endptr, base, __get_locale());
155 strtold(const char * __restrict nptr, char ** __restrict endptr) argument
157 return strtold_l(nptr, endptr, __get_locale());
H A Dstrtoimax.c54 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument
145 if (endptr != NULL)
146 *endptr = (char *)(any ? s - 1 : nptr);
150 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) argument
152 return strtoimax_l(nptr, endptr, base, __get_locale());
H A Dstrtoll.c54 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument
145 if (endptr != NULL)
146 *endptr = (char *)(any ? s - 1 : nptr);
150 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) argument
152 return strtoll_l(nptr, endptr, base, __get_locale());
/freebsd-9.3-release/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptc.c340 char *endptr, *ptr; local
351 v = strtoul(ptr, &endptr, 10);
356 if (*endptr != '-')
364 ptr = endptr + 1;
366 v = strtoul(ptr, &endptr, 10);
371 if (*endptr != '-')
377 ptr = endptr + 1;
379 v = strtoul(ptr, &endptr, 10);
384 if (*endptr != '-')
390 ptr = endptr
490 char *endptr; local
603 char *endptr, *ptr; local
645 char *endptr; local
717 char *endptr, *ptr; local
772 char *endptr; local
871 char *endptr, *ptr; local
931 char *ptr, *endptr; local
1019 char *endptr, *ptr; local
1059 char *ptr, *endptr; local
1212 char *endptr; local
1251 char *endptr; local
[all...]
/freebsd-9.3-release/bin/sh/
H A Dshell.h61 #define strtoarith_t(nptr, endptr, base) strtoimax(nptr, endptr, base)
/freebsd-9.3-release/contrib/amd/libamu/
H A Dmtab.c175 char *eq, *endptr; local
191 endptr = NULL;
192 i = strtol(eq, &endptr, 0); /* hex and octal allowed ;-) */
193 if (!endptr ||
194 (endptr != eq && (*endptr == ',' || *endptr == '\0'))) {
196 * endptr set means strtol saw a non-digit. If the non-digit is a
234 char *endptr = strchr(eq, ','); local
237 if (!endptr)
[all...]
/freebsd-9.3-release/sys/libkern/
H A Dinet_aton.c43 char *endptr; local
57 l = strtoul(c, &endptr, 0);
59 if (l == ULONG_MAX || (l == 0 && endptr == c))
65 * If the whole string is invalid, endptr will equal
70 if (endptr == c)
73 c = endptr;
H A Dstrtol.c50 strtol(nptr, endptr, base)
52 char **endptr;
126 if (endptr != 0)
127 *((const char **)endptr) = any ? s - 1 : nptr;
H A Dstrtoul.c50 strtoul(nptr, endptr, base)
52 char **endptr;
105 if (endptr != 0)
106 *((const char **)endptr) = any ? s - 1 : nptr;
/freebsd-9.3-release/contrib/diff/lib/
H A Dstrtoimax.c65 strtoimax (char const *ptr, char **endptr, int base) argument
73 return strtoll (ptr, endptr, base);
79 return strtol (ptr, endptr, base);
/freebsd-9.3-release/contrib/nvi/clib/
H A Dstrtol.c56 strtol(nptr, endptr, base)
58 char **endptr;
131 if (endptr != 0)
132 *endptr = (char *)(any ? s - 1 : nptr);
H A Dstrtoul.c56 strtoul(nptr, endptr, base)
58 char **endptr;
110 if (endptr != 0)
111 *endptr = (char *)(any ? s - 1 : nptr);
/freebsd-9.3-release/lib/libstand/
H A Dstrtol.c47 strtol(nptr, endptr, base)
49 char **endptr;
129 if (endptr != 0)
130 *endptr = (char *)(any ? s - 1 : nptr);
/freebsd-9.3-release/lib/libc/iconv/
H A D_strtol.h47 _FUNCNAME(const char *nptr, char **endptr, int base) argument
58 if (endptr != NULL)
60 *endptr = __DECONST(void *, nptr);
163 if (endptr != NULL)
165 *endptr = __DECONST(void *, any ? s - 1 : nptr);

Completed in 107 milliseconds

12345