Item | Value |
Header file | locale.h |
Declaration | char *setlocale(int type, const char *locale); |
Function | set local information |
type must be one of the following macros (defined in
The setlocale() function returns a pointer to a string associated with the type parameter.
Display the current locale setting:
#include <locale.h> #include <stdio.h> int main(void) { printf(setlocale(LC_ALL, "")); return 0; }
C
25.10.setlocale | ||||
25.10.1. | setlocale |