4918
5880
3万
GROAD
曲径通幽,安觅芳踪。
#include <strings.h> int bcmp(const void *s1, const void *s2, size_t n);
#include <stdio.h> #include <string.h> int main() { char buf1[] = "hello world"; char buf2[] = "hello linux"; if (!bcmp(buf1, buf2, 5)) printf ("equal\n"); if (bcmp(buf1, buf2, 8)) printf ("not equal\n"); return 0; }
./bcmp equal not equal
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|曲径通幽 ( 琼ICP备11001422号-1|公安备案:46900502000207 )
GMT+8, 2025-5-4 01:06 , Processed in 0.080350 second(s), 23 queries .
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.