prg_string_double_localize()
Abstract
Converts a POSIX/C string containing a double to a locale string.
Syntax
prg_string_double_localize (str)
| Argument | Type | Description |
|---|---|---|
str |
char * |
String to convert. |
Return Type
void
No return value.
Header
prg_string_funcs.h
Details
This function takes a POSIX string representing a double and replaces the decimal point and thousands separator characters with equivalent characters appropriate to the computer’s locale setting. For example, if str is passed as “2,718,281.83” and the locale is Germany, str is changed to “2.718.281,83”.
You can use prg_string_double_unlocalize() to reverse this process.