⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch13-lconv.c

📁 linux编程精髓 源代码
💻 C
字号:
/* ch13-lconv.c --- show some of the components of the struct lconv */#include <stdio.h>#include <limits.h>#include <locale.h>int main(void){	struct lconv l;	int i;	setlocale(LC_ALL, "");	l = *localeconv();	printf("decimal_point = [%s]\n", l.decimal_point);	printf("thousands_sep = [%s]\n", l.thousands_sep);	for (i = 0; l.grouping[i] != 0 && l.grouping[i] != CHAR_MAX; i++)		printf("grouping[%d] = [%d]\n", i, l.grouping[i]);	printf("int_curr_symbol = [%s]\n", l.int_curr_symbol);	printf("currency_symbol = [%s]\n", l.currency_symbol);	printf("mon_decimal_point = [%s]\n", l.mon_decimal_point);	printf("mon_thousands_sep = [%s]\n", l.mon_thousands_sep);	printf("positive_sign = [%s]\n", l.positive_sign);	printf("negative_sign = [%s]\n", l.negative_sign);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -