char line_info[256] = {0}; strncmp(line_info,"#%\n",3); strncmp中的“#%”是什么意思?

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 10:44:21

char line_info[256] = {0}; strncmp(line_info,"#%\n",3); strncmp中的“#%”是什么意思?
char line_info[256] = {0}; strncmp(line_info,"#%\n",3); strncmp中的“#%”是什么意思?

char line_info[256] = {0}; strncmp(line_info,"#%\n",3); strncmp中的“#%”是什么意思?
int strncmp(const char *s1,const char *s2,size_t maxlen)
比较字符串s1与s2中的前maxlen个字符
这里只是代表字符#、 字符%、字符\n