#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define uint unsigned int
#define uchar unsigned char
main()
{
uchar *buf="#command#";
uchar *sub;
uchar *well="command";
int a = 0;
int i = 0;
strncpy(sub,buf+1,7);
if(strncmp(sub,well,7) == 0)
a = 1;
printf("%d
",a);
}
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>