| Locale-Sensitive Function char *nl_langinfo(nl_item item); Internationalization (I18n) Function OverviewThe nl_langinfofunction can be used to access individual elements of the locale categories. Unlike thelocaleconvfunction, which returns all the information,nl_langinfolets the caller select what information it requires. This is very fast and it is not a problem to call this function multiple times. A second advantage is that in addition to the numeric and monetary formatting information, information from theLC_TIMEandLC_MESSAGEScategories is available. The type nl_typeis defined innl_types.h. The argumentitemis a numeric value defined in the headerlanginfo.h. An example of where one would use the nl_langinfofunction is thestrftimeformat call like in the following example: strftime (s, len, nl_langinfo (D_T_FMT), tp);
 I18n IssuesPrior to calling nl_langinfo, ensure that the 
current locale is set properly by calling setlocale. Recommended Replacements* 
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function. Locale-Sensitive Functions    
 |