4.6.10. localeconv()

localeconv() creates and sets the components of an lconv structure with values appropriate for the formatting of numeric quantities according to the rules of the current locale.

Syntax

struct lconv* localeconv(void);

Implementation

The members of the structure with type char are strings, any of which, except decimal_point, can point to "" to indicate that the value is not available in the current locale or is of zero length.

The members with type char are non-negative numbers. Any of the members can be CHAR_MAX to indicate that the value is not available in the current locale.

The members included in lconv are described in The lconv structure.

Returns

The function returns a pointer to the filled-in object. The structure pointed to by the return value is not modified by the program, but might be overwritten by a subsequent call to the localeconv() function. In addition, calls to the setlocale() function with categories LC_ALL, LC_MONETARY, or LC_NUMERIC might overwrite the contents of the structure.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D
Non-Confidential