Reference

strtol_l(3)

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

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, respectively. 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)