snprintf error. argument to sizeof is the same as destination

后端 未结 0 463
挽巷
挽巷 2021-02-13 08:36

gcc 4.8 give me an error when I build

#include 
#include 

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


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