C语言中的字符串比较函数是strcmp()函数。下面我们来详细介绍一下该函数。函数原型:int strcmp(const char *s1, const char *s2);头文件:#include <string.h>功能: