string - h是什么头文件

来源:趣味经验馆 2.63W

string.h头文件是C语言里面关于字符数组的函数定义的头文件。常用的函数有:

string.h是什么头文件

strlen求字符串长度。

strcmp比较2个字符串是否一样。

strcat字符串连接操作。

strcpy字符串拷贝操作。

strncat字符串连接操作(前n个字符)。

strncpy字符串拷贝操作(前n个字符)。

strchr查询字串。

strstr 查询子串。

热门标签