gdb调试报错记录

警告信息:

  incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]

原因:未添加<string.h>头文件,strlen返回的是字符的个数,是不包含字符串结束符的。

原文地址:https://www.cnblogs.com/10cm/p/3420024.html