testcmp.c
来自「Tornado的源代码资源包」· C语言 代码 · 共 27 行
C
27 行
#include "stdio.h"
#include "stdlib.h"
#include "String.h"
int main()
{
char msgBuf[50];
int re=0;
printf("\nInput the command :> ");
scanf("%[^\n]",msgBuf);
re=strncmp(msgBuf, "Led ",4);
if (re == 0)
printf("OK\n");
else
printf("Value = %d \n",re);
system("pause");
return;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?