Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179
Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Материал из C\C++ эксперт
setlocale: set local information
//Declaration: char *setlocale(int type, const char *locale);
//type must be one of the following macros (defined in <locale.h>):
//LC_ALL: refers to all localization categories.
//LC_COLLATE: affects the operation of the strcoll() function.
//LC_CTYPE: alters the way the character functions work.
//LC_MONETARY: determines the monetary format.
//LC_NUMERIC: changes the decimal-point character for formatted input/output functions.
//LC_TIME: determines the behavior of the strftime() function.
#include <locale.h>
#include <stdio.h>
int main(void)
{
printf(setlocale(LC_ALL, ""));
return 0;
}
/*
C*/