摘要: 错误原因:在标准C库的字符串处理函数 strxxx 一系列函数中,对参数传入NULL将会导致程序崩溃。 #include <stdio.h> #include <string.h> int main() { char s[10]; strlen(NULL); //程序崩溃 strcmp(s,NULL 阅读全文
posted @ 2019-09-22 12:08 草叶321 阅读(134) 评论(0) 推荐(0) 编辑