Keil Logo

localeconv()

4.15 localeconv()

Defined in stdlib.h, 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);

Usage

The members of the structure with type char * are strings. Any of these, except for decimal_point, can point to an empty string, "", 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.
This function is not thread-safe, because it uses an internal static buffer. _get_lconv() provides a thread-safe alternative.

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.
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.