|
This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles. For more information about the manual page format, see the manual page for manpages(5). |
STRTOL_L(3) BSD Library Functions Manual STRTOL_L(3) NAME strtol_l, strtoll_l, strtoimax_l, strtoq_l, strtoul_l, strtoull_l, strtoumax_l, strtouq_l -- convert a string value to a long, long long, intmax_t, quad_t unsigned long, unsigned long long, uintmax_t, or u_quad_t integer LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <stdlib.h> #include <limits.h> #include <xlocale.h> long strtol_l(const char * restrict nptr, char ** restrict endptr, int base, locale_t loc); long long strtoll_l(const char * restrict nptr, char ** restrict endptr, int base, locale_t loc); unsigned long strtoul_l(const char * restrict nptr, char ** restrict endptr, int base, locale_t loc); unsigned long long strtoull_l(const char * restrict nptr, char ** restrict endptr, int base, locale_t loc); #include <inttypes.h> #include <xlocale.h> intmax_t strtoimax_l(const char * restrict nptr, char ** restrict endptr, int base, locale_t loc); uintmax_t strtoumax_l(const char * restrict nptr, char ** restrict endptr, int base, locale_t loc); #include <sys/types.h> #include <stdlib.h> #include <limits.h> #include <xlocale.h> quad_t strtoq_l(const char *nptr, char **endptr, int base, locale_t loc); u_quad_t strtouq_l(const char *nptr, char **endptr, int base, locale_t loc); DESCRIPTION The strtol_l(), strtoll_l(), strtoimax_l(), strtoq_l(), strtoul_l(), strtoull_l(), strtoumax_l(), and strtouq_l() functions are extended locale versions of the strtol(), strtoll(), strtoimax(), strtoq(), strtoul(), strtoull(), strtoumax(), and strtouq() functions, respec-tively. respectively. tively. Refer to their manual pages for details. Also, see xlocale(3) for more information about extended locales. SEE ALSO strtol(3), strtoul(3), xlocale(3) BSD March 11, 2005 BSD |