]>
git.saurik.com Git - apple/libc.git/blob - include/xlocale/_stdio.h
c48f7632a1e151a3c305ec34a667c15c6bd62990
2 * Copyright (c) 2005, 2009, 2010 Apple Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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.
21 * @APPLE_LICENSE_HEADER_END@
24 #ifndef _XLOCALE__STDIO_H_
25 #define _XLOCALE__STDIO_H_
29 int fprintf_l(FILE * __restrict
, locale_t __restrict
, const char * __restrict
, ...)
31 int fscanf_l(FILE * __restrict
, locale_t __restrict
, const char * __restrict
, ...)
33 int printf_l(locale_t __restrict
, const char * __restrict
, ...)
35 int scanf_l(locale_t __restrict
, const char * __restrict
, ...)
37 int sprintf_l(char * __restrict
, locale_t __restrict
, const char * __restrict
, ...)
38 __printflike(3, 4) __swift_unavailable("Use snprintf_l instead.");
39 int sscanf_l(const char * __restrict
, locale_t __restrict
, const char * __restrict
, ...)
41 int vfprintf_l(FILE * __restrict
, locale_t __restrict
, const char * __restrict
, va_list)
43 int vprintf_l(locale_t __restrict
, const char * __restrict
, va_list)
45 int vsprintf_l(char * __restrict
, locale_t __restrict
, const char * __restrict
, va_list)
46 __printflike(3, 0) __swift_unavailable("Use vsnprintf_l instead.");
48 #if __DARWIN_C_LEVEL >= 200112L || defined(__cplusplus)
49 int snprintf_l(char * __restrict
, size_t, locale_t __restrict
, const char * __restrict
, ...)
51 int vfscanf_l(FILE * __restrict
, locale_t __restrict
, const char * __restrict
, va_list)
53 int vscanf_l(locale_t __restrict
, const char * __restrict
, va_list)
55 int vsnprintf_l(char * __restrict
, size_t, locale_t __restrict
, const char * __restrict
, va_list)
57 int vsscanf_l(const char * __restrict
, locale_t __restrict
, const char * __restrict
, va_list)
61 #if __DARWIN_C_LEVEL >= 200809L || defined(__cplusplus)
62 int dprintf_l(int, locale_t __restrict
, const char * __restrict
, ...)
63 __printflike(3, 4) __OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_4_3
);
64 int vdprintf_l(int, locale_t __restrict
, const char * __restrict
, va_list)
65 __printflike(3, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7
, __IPHONE_4_3
);
69 #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL || defined(__cplusplus)
70 int asprintf_l(char ** __restrict
, locale_t __restrict
, const char * __restrict
, ...)
72 int vasprintf_l(char ** __restrict
, locale_t __restrict
, const char * __restrict
, va_list)
79 #endif /* _XLOCALE__STDIO_H_ */