]> git.saurik.com Git - apple/libc.git/blame - include/xlocale/_stdio.h
Libc-1244.50.9.tar.gz
[apple/libc.git] / include / xlocale / _stdio.h
CommitLineData
3d9156a7 1/*
1f2f436a 2 * Copyright (c) 2005, 2009, 2010 Apple Inc. All rights reserved.
3d9156a7
A
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__STDIO_H_
25#define _XLOCALE__STDIO_H_
26
e07eda1a
A
27#include <_stdio.h>
28#include <_xlocale.h>
29
3d9156a7 30__BEGIN_DECLS
1f2f436a 31
6465356a 32int fprintf_l(FILE * __restrict, locale_t __restrict, const char * __restrict, ...)
ad3c9f2a 33 __printflike(3, 4);
6465356a 34int fscanf_l(FILE * __restrict, locale_t __restrict, const char * __restrict, ...)
ad3c9f2a 35 __scanflike(3, 4);
6465356a 36int printf_l(locale_t __restrict, const char * __restrict, ...)
ad3c9f2a 37 __printflike(2, 3);
6465356a 38int scanf_l(locale_t __restrict, const char * __restrict, ...)
ad3c9f2a 39 __scanflike(2, 3);
6465356a 40int sprintf_l(char * __restrict, locale_t __restrict, const char * __restrict, ...)
974e3884 41 __printflike(3, 4) __swift_unavailable("Use snprintf_l instead.");
6465356a 42int sscanf_l(const char * __restrict, locale_t __restrict, const char * __restrict, ...)
ad3c9f2a 43 __scanflike(3, 4);
6465356a 44int vfprintf_l(FILE * __restrict, locale_t __restrict, const char * __restrict, va_list)
ad3c9f2a 45 __printflike(3, 0);
6465356a 46int vprintf_l(locale_t __restrict, const char * __restrict, va_list)
ad3c9f2a 47 __printflike(2, 0);
6465356a 48int vsprintf_l(char * __restrict, locale_t __restrict, const char * __restrict, va_list)
974e3884 49 __printflike(3, 0) __swift_unavailable("Use vsnprintf_l instead.");
1f2f436a 50
6465356a
A
51#if __DARWIN_C_LEVEL >= 200112L || defined(__cplusplus)
52int snprintf_l(char * __restrict, size_t, locale_t __restrict, const char * __restrict, ...)
ad3c9f2a 53 __printflike(4, 5);
6465356a 54int vfscanf_l(FILE * __restrict, locale_t __restrict, const char * __restrict, va_list)
ad3c9f2a 55 __scanflike(3, 0);
6465356a 56int vscanf_l(locale_t __restrict, const char * __restrict, va_list)
ad3c9f2a 57 __scanflike(2, 0);
6465356a 58int vsnprintf_l(char * __restrict, size_t, locale_t __restrict, const char * __restrict, va_list)
ad3c9f2a 59 __printflike(4, 0);
6465356a 60int vsscanf_l(const char * __restrict, locale_t __restrict, const char * __restrict, va_list)
ad3c9f2a 61 __scanflike(3, 0);
1f2f436a
A
62#endif
63
6465356a
A
64#if __DARWIN_C_LEVEL >= 200809L || defined(__cplusplus)
65int dprintf_l(int, locale_t __restrict, const char * __restrict, ...)
ad3c9f2a 66 __printflike(3, 4) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
6465356a 67int vdprintf_l(int, locale_t __restrict, const char * __restrict, va_list)
ad3c9f2a 68 __printflike(3, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
1f2f436a
A
69#endif
70
71
6465356a
A
72#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL || defined(__cplusplus)
73int asprintf_l(char ** __restrict, locale_t __restrict, const char * __restrict, ...)
ad3c9f2a 74 __printflike(3, 4);
6465356a 75int vasprintf_l(char ** __restrict, locale_t __restrict, const char * __restrict, va_list)
ad3c9f2a 76 __printflike(3, 0);
1f2f436a
A
77#endif
78
3d9156a7
A
79__END_DECLS
80
1f2f436a 81
3d9156a7 82#endif /* _XLOCALE__STDIO_H_ */