strncmp函数

函数原型:extern int strcmp(char *str1,char * str2,int n) 参数说明:str1为第一个要比较的字符串,str2为第二个要比较的字符串,n为指定的str1与str2的比较的字符数。         所在库名:#include <string.h>   函数功能:比较字符串str1和str2的前n个字符。   返回说明:返回整数值:当str1<str2时,
相关文章
相关标签/搜索