/ stdlib / strtol_l.3
strtol_l.3
  1  .\" Copyright (c) 1990, 1991, 1993
  2  .\"	The Regents of the University of California.  All rights reserved.
  3  .\"
  4  .\" This code is derived from software contributed to Berkeley by
  5  .\" Chris Torek and the American National Standards Committee X3,
  6  .\" on Information Processing Systems.
  7  .\"
  8  .\" Redistribution and use in source and binary forms, with or without
  9  .\" modification, are permitted provided that the following conditions
 10  .\" are met:
 11  .\" 1. Redistributions of source code must retain the above copyright
 12  .\"    notice, this list of conditions and the following disclaimer.
 13  .\" 2. Redistributions in binary form must reproduce the above copyright
 14  .\"    notice, this list of conditions and the following disclaimer in the
 15  .\"    documentation and/or other materials provided with the distribution.
 16  .\" 3. All advertising materials mentioning features or use of this software
 17  .\"    must display the following acknowledgement:
 18  .\"	This product includes software developed by the University of
 19  .\"	California, Berkeley and its contributors.
 20  .\" 4. Neither the name of the University nor the names of its contributors
 21  .\"    may be used to endorse or promote products derived from this software
 22  .\"    without specific prior written permission.
 23  .\"
 24  .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 25  .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 26  .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 27  .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 28  .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 29  .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 30  .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 31  .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 32  .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 33  .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 34  .\" SUCH DAMAGE.
 35  .\"
 36  .\"     @(#)strtol.3	8.1 (Berkeley) 6/4/93
 37  .\" $FreeBSD: src/lib/libc/stdlib/strtol.3,v 1.19 2002/10/10 04:31:57 tjr Exp $
 38  .\"
 39  .Dd March 11, 2005
 40  .Dt STRTOL_L 3
 41  .Os
 42  .Sh NAME
 43  .Nm strtol_l , strtoll_l , strtoimax_l , strtoq_l ,
 44  .Nm strtoul_l , strtoull_l , strtoumax_l , strtouq_l
 45  .Nd "convert a string value to a"
 46  .Vt long , "long long" , intmax_t , quad_t
 47  .Vt "unsigned long" , "unsigned long long" , uintmax_t ,
 48  or
 49  .Vt u_quad_t
 50  integer
 51  .Sh LIBRARY
 52  .Lb libc
 53  .Sh SYNOPSIS
 54  .In stdlib.h
 55  .In limits.h
 56  .In xlocale.h
 57  .Ft long
 58  .Fn strtol_l "const char * restrict nptr" "char ** restrict endptr" "int base" "locale_t loc"
 59  .Ft long long
 60  .Fn strtoll_l "const char * restrict nptr" "char ** restrict endptr" "int base" "locale_t loc"
 61  .Ft "unsigned long"
 62  .Fn strtoul_l "const char * restrict nptr" "char ** restrict endptr" "int base" "locale_t loc"
 63  .Ft "unsigned long long"
 64  .Fn strtoull_l "const char * restrict nptr" "char ** restrict endptr" "int base" "locale_t loc"
 65  .In inttypes.h
 66  .In xlocale.h
 67  .Ft intmax_t
 68  .Fn strtoimax_l "const char * restrict nptr" "char ** restrict endptr" "int base" "locale_t loc"
 69  .Ft uintmax_t
 70  .Fn strtoumax_l "const char * restrict nptr" "char ** restrict endptr" "int base" "locale_t loc"
 71  .In sys/types.h
 72  .In stdlib.h
 73  .In limits.h
 74  .In xlocale.h
 75  .Ft quad_t
 76  .Fn strtoq_l "const char *nptr" "char **endptr" "int base" "locale_t loc"
 77  .Ft u_quad_t
 78  .Fn strtouq_l "const char *nptr" "char **endptr" "int base" "locale_t loc"
 79  .Sh DESCRIPTION
 80  The
 81  .Fn strtol_l ,
 82  .Fn strtoll_l ,
 83  .Fn strtoimax_l ,
 84  .Fn strtoq_l ,
 85  .Fn strtoul_l ,
 86  .Fn strtoull_l ,
 87  .Fn strtoumax_l ,
 88  and
 89  .Fn strtouq_l
 90  functions are extended locale versions of the
 91  .Fn strtol ,
 92  .Fn strtoll ,
 93  .Fn strtoimax ,
 94  .Fn strtoq ,
 95  .Fn strtoul ,
 96  .Fn strtoull ,
 97  .Fn strtoumax ,
 98  and
 99  .Fn strtouq
100  functions, respectively.
101  Refer to their manual pages for details.
102  Also, see
103  .Xr xlocale 3 for more information about extended locales.
104  .Sh SEE ALSO
105  .Xr strtol 3 ,
106  .Xr strtoul 3 ,
107  .Xr xlocale 3