]> git.ipfire.org Git - thirdparty/glibc.git/blame - stdlib/monetary.h
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[thirdparty/glibc.git] / stdlib / monetary.h
CommitLineData
b8fe19fa 1/* Header file for monetary value formatting functions.
a334319f 2 Copyright (C) 1996,97,98,99,2000,02 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
AJ
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
b8fe19fa
RM
19
20#ifndef _MONETARY_H
b8fe19fa 21#define _MONETARY_H 1
5107cf1d 22
b8fe19fa
RM
23#include <features.h>
24
25/* Get needed types. */
219aa9e9
UD
26#define __need_size_t
27#include <stddef.h>
28#include <bits/types.h>
29
30#ifndef __ssize_t_defined
31typedef __ssize_t ssize_t;
32# define __ssize_t_defined
33#endif
34
b8fe19fa
RM
35
36__BEGIN_DECLS
37
6d52618b 38/* Formatting a monetary value according to the current locale. */
c1422e5b 39extern ssize_t strfmon (char *__restrict __s, size_t __maxsize,
d9af8867
UD
40 __const char *__restrict __format, ...)
41 __THROW __attribute_format_strfmon__ (3, 4);
b8fe19fa 42
c84142e8
UD
43#ifdef __USE_GNU
44# include <xlocale.h>
45
46/* Formatting a monetary value according to the current locale. */
da4cfe38
RM
47extern ssize_t strfmon_l (char *__restrict __s, size_t __maxsize,
48 __locale_t loc,
49 __const char *__restrict __format, ...)
d9af8867 50 __THROW __attribute_format_strfmon__ (4, 5);
c84142e8
UD
51#endif
52
b8fe19fa
RM
53__END_DECLS
54
55#endif /* monetary.h */