1996-05-22 02:11:55 +00:00
|
|
|
/* Header file for monetary value formatting functions.
|
2018-01-01 00:32:25 +00:00
|
|
|
Copyright (C) 1996-2018 Free Software Foundation, Inc.
|
1996-12-20 01:39:50 +00:00
|
|
|
This file is part of the GNU C Library.
|
1996-05-22 02:11:55 +00:00
|
|
|
|
1996-12-20 01:39:50 +00:00
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:58:11 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
1996-05-22 02:11:55 +00:00
|
|
|
|
1996-12-20 01:39:50 +00:00
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:58:11 +00:00
|
|
|
Lesser General Public License for more details.
|
1996-05-22 02:11:55 +00:00
|
|
|
|
2001-07-06 04:58:11 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-02-09 23:18:22 +00:00
|
|
|
License along with the GNU C Library; if not, see
|
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1996-05-22 02:11:55 +00:00
|
|
|
|
|
|
|
|
#ifndef _MONETARY_H
|
|
|
|
|
#define _MONETARY_H 1
|
1997-06-21 02:59:26 +00:00
|
|
|
|
1996-05-22 02:11:55 +00:00
|
|
|
#include <features.h>
|
|
|
|
|
|
|
|
|
|
/* Get needed types. */
|
1999-08-18 07:53:35 +00:00
|
|
|
#define __need_size_t
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <bits/types.h>
|
|
|
|
|
|
|
|
|
|
#ifndef __ssize_t_defined
|
|
|
|
|
typedef __ssize_t ssize_t;
|
|
|
|
|
# define __ssize_t_defined
|
|
|
|
|
#endif
|
|
|
|
|
|
1996-05-22 02:11:55 +00:00
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
2015-05-27 08:07:07 +05:30
|
|
|
/* Formatting a monetary value according to the current locale. */
|
1999-10-09 21:56:43 +00:00
|
|
|
extern ssize_t strfmon (char *__restrict __s, size_t __maxsize,
|
2012-01-07 23:57:22 -05:00
|
|
|
const char *__restrict __format, ...)
|
2000-12-29 22:21:02 +00:00
|
|
|
__THROW __attribute_format_strfmon__ (3, 4);
|
1996-05-22 02:11:55 +00:00
|
|
|
|
2009-02-26 02:23:50 +00:00
|
|
|
#ifdef __USE_XOPEN2K8
|
2017-06-09 12:02:06 -04:00
|
|
|
/* POSIX.1-2008 extended locale interface (see locale.h). */
|
|
|
|
|
# include <bits/types/locale_t.h>
|
1997-02-15 04:31:36 +00:00
|
|
|
|
2015-05-27 08:07:07 +05:30
|
|
|
/* Formatting a monetary value according to the given locale. */
|
2002-08-27 23:36:31 +00:00
|
|
|
extern ssize_t strfmon_l (char *__restrict __s, size_t __maxsize,
|
2017-06-20 09:26:43 -04:00
|
|
|
locale_t __loc,
|
2012-01-07 23:57:22 -05:00
|
|
|
const char *__restrict __format, ...)
|
2000-12-29 22:21:02 +00:00
|
|
|
__THROW __attribute_format_strfmon__ (4, 5);
|
1997-02-15 04:31:36 +00:00
|
|
|
#endif
|
|
|
|
|
|
2006-01-14 12:10:44 +00:00
|
|
|
#ifdef __LDBL_COMPAT
|
|
|
|
|
# include <bits/monetary-ldbl.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
1996-05-22 02:11:55 +00:00
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
|
|
#endif /* monetary.h */
|