Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
nl_langinfo - get locale values
&pagelevel(4)&pagelevel
Syntax | #include <langinfo.h> char *nl_langinfo(nl_item item); |
Description | nl_langinfo() returns the value of the constant item in the current locale or environment. The available constants and values for item are defined in langinfo.h .
|
Return val. | Pointer to a string of the locale |
| if no langinfo data is defined in an environment. |
Null pointer | if item is invalid. |
Notes | The array pointed to by the return value should not be modified by the program, but may be modified by further calls to nl_langinfo() . In addition, calls to setlocale() with a category corresponding to the category of item or to the category LC_ALL may overwrite the array. If setlocale() is not called in an application, the current locale in the POSIX subsystem defaults to "POSIX". The return values of nl_langinfo() are based on the current locale. If the current locale does not contain any value for a given parameter, the corresponding value of the default is returned. |
See also | setlocale() , langinfo.h , nl_types.h , section “Locale” and section“Environment variables”.
|