Indicates that the function takes no meaningful parameters.
Read more about parameters of localeconv in parameters section
The localeconvfunction in C language Returns a pointer to the current locale's formatting settings.
The localeconv function returns a pointer to a structure of type lconv with the numeric and monetary formatting conventions of the current locale. This structure contains various members that define the rules for formatting numeric and monetary values according to the locale-specific settings.
The localeconvfunction takes 1
parameter:
•
void `none`: Indicates that the function takes no meaningful parameters.
Retrieves information about the formatting conventions of the current locale, such as decimal point, thousands separator, and currency symbols. Returns a pointer to a `struct lconv` containing locale-specific information. The structure fields reflect the locale settings established by `setlocale`.
The localeconv function return value :
Returns a pointer to a static lconv structure containing the locale's formatting settings
Output
This example demonstrates basic usage of localeconv to get formatting information for the US locale.