summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2001-09-05 18:50:56 +0000
committerphantom <phantom@FreeBSD.org>2001-09-05 18:50:56 +0000
commit84039966fd9f48747f363812f017aafbb98e9d0d (patch)
treea0e39fc4de8f4a0e23575ff476eb82543763525e /include
parent2b26e9313ca48be9b620c50051a4e45695f49ac8 (diff)
downloadFreeBSD-src-84039966fd9f48747f363812f017aafbb98e9d0d.zip
FreeBSD-src-84039966fd9f48747f363812f017aafbb98e9d0d.tar.gz
add monetary.h as per POSIX requirement
Diffstat (limited to 'include')
-rw-r--r--include/Makefile2
-rw-r--r--include/monetary.h40
2 files changed, 41 insertions, 1 deletions
diff --git a/include/Makefile b/include/Makefile
index eccd794..41a3625 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -13,7 +13,7 @@ FILES= a.out.h ar.h assert.h bitstring.h complex.h ctype.h db.h \
dlfcn.h elf.h elf-hints.h err.h fnmatch.h fstab.h \
fts.h glob.h grp.h strhash.h \
hesiod.h histedit.h ieeefp.h ifaddrs.h iso646.h langinfo.h \
- libgen.h limits.h link.h locale.h malloc.h memory.h mpool.h \
+ libgen.h limits.h link.h locale.h malloc.h monetary.h memory.h mpool.h \
netconfig.h ndbm.h netdb.h nl_types.h nlist.h nsswitch.h objformat.h \
paths.h pthread.h pthread_np.h pwd.h \
ranlib.h regex.h regexp.h resolv.h rune.h runetype.h \
diff --git a/include/monetary.h b/include/monetary.h
new file mode 100644
index 0000000..177d590
--- /dev/null
+++ b/include/monetary.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2001 Alexey Zelkin
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef _MONETARY_H
+#define _MONETARY_H
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#include <stddef.h>
+
+__BEGIN_DECLS
+ssize_t strfmon(char *, size_t, const char *m, ...);
+__END_DECLS
+
+#endif /* _MONETARY_H */
OpenPOWER on IntegriCloud