]> git.saurik.com Git - apple/libc.git/blame - include/xlocale/_stdlib.h
Libc-763.13.tar.gz
[apple/libc.git] / include / xlocale / _stdlib.h
CommitLineData
3d9156a7
A
1/*
2 * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24#ifndef _XLOCALE__STDLIB_H_
25#define _XLOCALE__STDLIB_H_
26
27__BEGIN_DECLS
28double atof_l(const char *, locale_t);
29int atoi_l(const char *, locale_t);
30long atol_l(const char *, locale_t);
31#if !__DARWIN_NO_LONG_LONG
32long long
33 atoll_l(const char *, locale_t);
34#endif /* !__DARWIN_NO_LONG_LONG */
35int mblen_l(const char *, size_t, locale_t);
36size_t mbstowcs_l(wchar_t * __restrict , const char * __restrict, size_t,
37 locale_t);
38int mbtowc_l(wchar_t * __restrict, const char * __restrict, size_t,
39 locale_t);
224c7076
A
40double strtod_l(const char *, char **, locale_t) __DARWIN_ALIAS(strtod_l);
41float strtof_l(const char *, char **, locale_t) __DARWIN_ALIAS(strtof_l);
3d9156a7
A
42long strtol_l(const char *, char **, int, locale_t);
43long double
44 strtold_l(const char *, char **, locale_t)
45 __DARWIN_LDBL_COMPAT2(strtold_l);
46long long
47 strtoll_l(const char *, char **, int, locale_t);
48#if !__DARWIN_NO_LONG_LONG
49long long
50 strtoq_l(const char *, char **, int, locale_t);
51#endif /* !__DARWIN_NO_LONG_LONG */
52unsigned long
53 strtoul_l(const char *, char **, int, locale_t);
54unsigned long long
55 strtoull_l(const char *, char **, int, locale_t);
56#if !__DARWIN_NO_LONG_LONG
57unsigned long long
58 strtouq_l(const char *, char **, int, locale_t);
59#endif /* !__DARWIN_NO_LONG_LONG */
60size_t wcstombs_l(char * __restrict, const wchar_t * __restrict, size_t,
61 locale_t);
62int wctomb_l(char *, wchar_t, locale_t);
224c7076
A
63
64/* Poison the following routines if -fshort-wchar is set */
65#if !defined(__cplusplus) && defined(__WCHAR_MAX__) && __WCHAR_MAX__ <= 0xffffU
66#pragma GCC poison mbstowcs_l mbtowc_l wcstombs_l wctomb_l
67#endif
3d9156a7
A
68__END_DECLS
69
70#endif /* _XLOCALE__STDLIB_H_ */