Back to index

glibc  2.9
monetary.h
Go to the documentation of this file.
00001 /* Header file for monetary value formatting functions.
00002    Copyright (C) 1996,1997,1998,1999,2000,2002,2006
00003        Free Software Foundation, Inc.
00004    This file is part of the GNU C Library.
00005 
00006    The GNU C Library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License as published by the Free Software Foundation; either
00009    version 2.1 of the License, or (at your option) any later version.
00010 
00011    The GNU C Library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public
00017    License along with the GNU C Library; if not, write to the Free
00018    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019    02111-1307 USA.  */
00020 
00021 #ifndef       _MONETARY_H
00022 #define       _MONETARY_H   1
00023 
00024 #include <features.h>
00025 
00026 /* Get needed types.  */
00027 #define __need_size_t
00028 #include <stddef.h>
00029 #include <bits/types.h>
00030 
00031 #ifndef       __ssize_t_defined
00032 typedef __ssize_t ssize_t;
00033 # define __ssize_t_defined
00034 #endif
00035 
00036 
00037 __BEGIN_DECLS
00038 
00039 /* Formatting a monetary value according to the current locale.  */
00040 extern ssize_t strfmon (char *__restrict __s, size_t __maxsize,
00041                      __const char *__restrict __format, ...)
00042      __THROW __attribute_format_strfmon__ (3, 4);
00043 
00044 #ifdef __USE_GNU
00045 # include <xlocale.h>
00046 
00047 /* Formatting a monetary value according to the current locale.  */
00048 extern ssize_t strfmon_l (char *__restrict __s, size_t __maxsize,
00049                        __locale_t loc,
00050                        __const char *__restrict __format, ...)
00051      __THROW __attribute_format_strfmon__ (4, 5);
00052 #endif
00053 
00054 #ifdef __LDBL_COMPAT
00055 # include <bits/monetary-ldbl.h>
00056 #endif
00057 
00058 __END_DECLS
00059 
00060 #endif /* monetary.h */