diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-11-15 21:51:51 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-11-15 21:51:51 +0100 |
commit | fc1428f20a3409b74f177087e06ccbf7111efb75 (patch) | |
tree | 7acdedb4a656b16f86358f58a2b83d7791602667 /mpf/out_str.c | |
parent | 546f18de82dd9b41506b198c0e11ced3ea87f737 (diff) | |
download | gmp-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.c | 8 |
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); |