C语言常用函数及面试题:strcmp、strcat、memmove、atoi.pdf

C语言常用函数及面试题:strcmp、strcat、memmove、atoi.pdf

1、strcmp

intstrcmp(constchar*str1,constchar*str2);

比较两个字符串,返回整数值的意义如下:

•-1,str1小于str2;

•0,str1等于str2;

•1,str1大于str2;

2、strcat

#includestring.h

c

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档