summaryrefslogtreecommitdiff
path: root/mpf/out_str.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-11-15 21:51:51 +0100
committerKevin Ryde <user42@zip.com.au>2001-11-15 21:51:51 +0100
commitfc1428f20a3409b74f177087e06ccbf7111efb75 (patch)
tree7acdedb4a656b16f86358f58a2b83d7791602667 /mpf/out_str.c
parent546f18de82dd9b41506b198c0e11ced3ea87f737 (diff)
downloadgmp-fc1428f20a3409b74f177087e06ccbf7111efb75.tar.gz
Better version of:
* mpf/out_str.c: Use localeconv for the decimal point.
Diffstat (limited to 'mpf/out_str.c')
-rw-r--r--mpf/out_str.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mpf/out_str.c b/mpf/out_str.c
index 0149307b7..156399fbe 100644
--- a/mpf/out_str.c
+++ b/mpf/out_str.c
@@ -70,11 +70,11 @@ mpf_out_str (FILE *stream, int base, size_t n_digits, mpf_srcptr op)
#if HAVE_LOCALECONV
{
- const char *dec = localeconv()->decimal_point;
- size_t declen = strlen (dec);
+ const char *point = localeconv()->decimal_point;
+ size_t pointlen = strlen (point);
putc ('0', stream);
- fwrite (dec, 1, declen, stream);
- written += declen + 1;
+ fwrite (point, 1, pointlen, stream);
+ written += pointlen + 1;
}
#else
fwrite ("0.", 1, 2, stream);