]>
Commit | Line | Data |
---|---|---|
b8fe19fa | 1 | /* Header file for monetary value formatting functions. |
b168057a | 2 | Copyright (C) 1996-2015 Free Software Foundation, Inc. |
6d52618b | 3 | This file is part of the GNU C Library. |
b8fe19fa | 4 | |
6d52618b | 5 | The GNU C Library is free software; you can redistribute it and/or |
41bdb6e2 AJ |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
b8fe19fa | 9 | |
6d52618b UD |
10 | The GNU C Library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 13 | Lesser General Public License for more details. |
b8fe19fa | 14 | |
41bdb6e2 | 15 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
16 | License along with the GNU C Library; if not, see |
17 | <http://www.gnu.org/licenses/>. */ | |
b8fe19fa RM |
18 | |
19 | #ifndef _MONETARY_H | |
b8fe19fa | 20 | #define _MONETARY_H 1 |
5107cf1d | 21 | |
b8fe19fa RM |
22 | #include <features.h> |
23 | ||
24 | /* Get needed types. */ | |
219aa9e9 UD |
25 | #define __need_size_t |
26 | #include <stddef.h> | |
27 | #include <bits/types.h> | |
28 | ||
29 | #ifndef __ssize_t_defined | |
30 | typedef __ssize_t ssize_t; | |
31 | # define __ssize_t_defined | |
32 | #endif | |
33 | ||
b8fe19fa RM |
34 | |
35 | __BEGIN_DECLS | |
36 | ||
6d52618b | 37 | /* Formatting a monetary value according to the current locale. */ |
c1422e5b | 38 | extern ssize_t strfmon (char *__restrict __s, size_t __maxsize, |
a784e502 | 39 | const char *__restrict __format, ...) |
d9af8867 | 40 | __THROW __attribute_format_strfmon__ (3, 4); |
b8fe19fa | 41 | |
77db439e | 42 | #ifdef __USE_XOPEN2K8 |
c84142e8 UD |
43 | # include <xlocale.h> |
44 | ||
45 | /* Formatting a monetary value according to the current locale. */ | |
da4cfe38 | 46 | extern ssize_t strfmon_l (char *__restrict __s, size_t __maxsize, |
d82a27f8 | 47 | __locale_t __loc, |
a784e502 | 48 | const char *__restrict __format, ...) |
d9af8867 | 49 | __THROW __attribute_format_strfmon__ (4, 5); |
c84142e8 UD |
50 | #endif |
51 | ||
c6251f03 RM |
52 | #ifdef __LDBL_COMPAT |
53 | # include <bits/monetary-ldbl.h> | |
54 | #endif | |
55 | ||
b8fe19fa RM |
56 | __END_DECLS |
57 | ||
58 | #endif /* monetary.h */ |