C localization functions: Difference between revisions

Content deleted Content added
m moved Locale.h to C localization functions: The subject is functions, not the file they happen to be defined in.
improve lead
Line 1:
{{cleanup|date=September 2011}}
{{lowercase}}
{{C Standard Library}}
In [[computing]], '''C localization functions''' are a group of functions in the [[C (programming language)|C programming language]] implementing basic localization routines.<ref name="c99">{{cite book | url=http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf | title=ISO/IEC 9899:1999 specification | at=p. 204, § 7.11 ''Localization'' }}</ref><ref name="c_primer">{{cite book|title=C primer plus | first=Stephen | last=Prata | year=2004 | publisher=Sams Publishing | isbn=0-672-32696-5 | at=Appendix B, Section V: The Standard ANSI C Library with C99 Additions}}</ref> The functions are used in multilingual programs to adapt to the specific locale. In particular, the way of displaying of numbers and currency can be modified. These settings affect the behaviour of [[C file input/output | input/output functions]] in the C Standard Library.
In [[computing]], '''locale.h''' is a [[C (programming language)|C]] programming language [[header file]], used for purposes of [[Internationalization and localization|localization]]. The header provides two key functions: <code>localeconv</code> and <code>setlocale</code>. The former provides access to the current locale, while the latter allows one to set the current locale. The header also defines the [[C++ classes|struct]] <code>lconv</code>, which stores information about a given locale, including the local preference for the display of numbers and currency.
 
==Criticism==