m_strcmp

strcmp比较两个字符串的大小,strcmp(str1, str2);

从str1和str2的第一个元素比较直到出现不同,或者遇到'\0'结束。如果str1 > str2 返回正数,str1 < str2返回负数,相等返回零。
eg:
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| abcde | > | abcd |
| abcde | > | abcddd |
| abcde | < | abcdef |

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

————————————————
版权声明:本文为CSDN博主「茉莲晨曦」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qcx321/article/details/53780672
***

自己实现这个函数:

猜你喜欢

转载自www.cnblogs.com/fanhua666/p/11459282.html
今日推荐