How to resolve compiler warning 'implicit declaration of function memset'

前端 未结 5 957
终归单人心
终归单人心 2021-02-01 02:45

My c code uses \'memset\' and \'close\'. And I have added:

#include 
#include 
#include 

But I sti

5条回答
  •  太阳男子
    2021-02-01 03:25

    memset requires you to import the header string.h file. So just add the following header

    #include 
    ...
    

提交回复
热议问题