summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/fix_grouping.c
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2003-06-26 10:46:16 +0000
committerphantom <phantom@FreeBSD.org>2003-06-26 10:46:16 +0000
commitcd4974c7348424a7f4d7337db3b49ee377be4b47 (patch)
treec4082e435ee6853fb778299516517d7162496077 /lib/libc/locale/fix_grouping.c
parentd45e58ad731761c5ee7051580c01c0a05c8d9322 (diff)
downloadFreeBSD-src-cd4974c7348424a7f4d7337db3b49ee377be4b47.zip
FreeBSD-src-cd4974c7348424a7f4d7337db3b49ee377be4b47.tar.gz
. style(9)
. fix/add comments (to cover changes done thru last 20 months) . extend monetary testcase to cover int_* values
Diffstat (limited to 'lib/libc/locale/fix_grouping.c')
-rw-r--r--lib/libc/locale/fix_grouping.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/locale/fix_grouping.c b/lib/libc/locale/fix_grouping.c
index db49e18..2e5bc04 100644
--- a/lib/libc/locale/fix_grouping.c
+++ b/lib/libc/locale/fix_grouping.c
@@ -34,12 +34,15 @@ __FBSDID("$FreeBSD$");
static const char nogrouping[] = { CHAR_MAX, '\0' };
/*
- * "3;3;-1" -> "\003\003\177"
+ * Internal helper used to convert grouping sequences from string
+ * representation into POSIX specified form, i.e.
+ *
+ * "3;3;-1" -> "\003\003\177\000"
*/
const char *
-__fix_locale_grouping_str(const char *str) {
-
+__fix_locale_grouping_str(const char *str)
+{
char *src, *dst;
char n;
OpenPOWER on IntegriCloud