Cameron Katri's Manual Page Server

Manual Page Search Parameters

STRTOL_L(3) Library Functions Manual STRTOL_L(3)

strtol_l, strtoll_l, strtoimax_l, strtoq_l, strtoul_l, strtoull_l, strtoumax_l, strtouq_lconvert a string value to a long, long long, intmax_t, quad_t unsigned long, unsigned long long, uintmax_t, or u_quad_t integer

Standard C Library (libc, -lc)

#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);

The (), (), (), (), (), (), (), and () functions are extended locale versions of the (), (), (), (), (), (), (), and () functions, respectively. Refer to their manual pages for details. Also, see xlocale(3) for more information about extended locales.

strtol(3), strtoul(3), xlocale(3)

March 11, 2005 macOS