diff options
author | phantom <phantom@FreeBSD.org> | 2003-06-26 10:46:16 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2003-06-26 10:46:16 +0000 |
commit | cd4974c7348424a7f4d7337db3b49ee377be4b47 (patch) | |
tree | c4082e435ee6853fb778299516517d7162496077 /lib/libc/locale/fix_grouping.c | |
parent | d45e58ad731761c5ee7051580c01c0a05c8d9322 (diff) | |
download | FreeBSD-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.c | 9 |
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; |