next up previous contents index
Next: Numeric formatting convention Up: Locale control Previous: Locale control

The setlocale function

setlocale

setlocale provides the mechanism for controlling locale-specific features of the library. The category argument allows parts of the library to be localized as necessary without changing the entire locale-specific environment. Specifying the locale argument as a string gives an implementation maximum flexibility in providing a set of locales. For instance, an implementation could map the argument string into the name of a file containing appropriate localization parameters --- these files could then be added and modified without requiring any recompilation of a localizable program.

4 4 2


Pete Jinks
Fri Jan 19 12:31:56 GMT 1996