ch13-strings.c
来自「linux编程精髓 源代码」· C语言 代码 · 共 15 行
C
15 行
/* ch13-strings.c --- demonstrate strcmp() vs. strcoll() */#include <stdio.h>#include <locale.h>#include <string.h>int main(void){ setlocale(LC_ALL, ""); printf("Result of strcmp(\"\\\"\", \"/\") is %d\n", strcmp("\"", "/")); printf("Result of strcoll(\"\\\"\", \"/\") is %d\n", strcoll("\"", "/")); exit(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?