Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/distrib/utils/libhack Slimmed-down localeconv



details:   https://anonhg.NetBSD.org/src/rev/bdd0cc184ce8
branches:  netbsd-1-4
changeset: 468699:bdd0cc184ce8
user:      gwr <gwr%NetBSD.org@localhost>
date:      Wed May 19 03:53:59 1999 +0000

description:
Slimmed-down localeconv

diffstat:

 distrib/utils/libhack/localeconv.c |  46 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diffs (50 lines):

diff -r 1452272c44e6 -r bdd0cc184ce8 distrib/utils/libhack/localeconv.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/utils/libhack/localeconv.c        Wed May 19 03:53:59 1999 +0000
@@ -0,0 +1,46 @@
+/*     $NetBSD: localeconv.c,v 1.1.2.2 1999/05/19 03:53:59 gwr Exp $   */
+
+/*
+ * Written by J.T. Conklin <jtc%netbsd.org@localhost>.
+ * Public domain.
+ */
+
+#include <sys/cdefs.h>
+#include <sys/localedef.h>
+#include <locale.h>
+
+/* 
+ * The localeconv() function constructs a struct lconv from the current
+ * monetary and numeric locales.
+ */
+
+/*
+ * Return the current locale conversion.
+ * Fixed in the "C" locale.
+ */
+struct lconv *
+localeconv()
+{
+    static struct lconv ret = {
+       /* char *decimal_point */ ".",
+       /* char *thousands_sep */ "",
+       /* char *grouping */ "",
+       /* char *int_curr_symbol */ "",
+       /* char *currency_symbol */ "",
+       /* char *mon_decimal_point */ "",
+       /* char *mon_thousands_sep */ "",
+       /* char *mon_grouping */ "",
+       /* char *positive_sign */ "",
+       /* char *negative_sign */ "",
+       /* char int_frac_digits */ CHAR_MAX,
+       /* char frac_digits */ CHAR_MAX,
+       /* char p_cs_precedes */ CHAR_MAX,
+       /* char p_sep_by_space */ CHAR_MAX,
+       /* char n_cs_precedes */ CHAR_MAX,
+       /* char n_sep_by_space */ CHAR_MAX,
+       /* char p_sign_posn */ CHAR_MAX,
+       /* char n_sign_posn */ CHAR_MAX,
+    };
+
+    return (&ret);
+}



Home | Main Index | Thread Index | Old Index