snprintf error. argument to sizeof is the same as destination

后端 未结 0 444
醉酒成梦
醉酒成梦 2021-02-13 08:21

gcc 4.8 give me an error when I build

#include 
#include 

static inline void toto(char str[3])
{
    snprintf(str, sizeof(str),          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题