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

前端 未结 5 945
终归单人心
终归单人心 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

    You need:

    #include  /* memset */
    #include  /* close */
    

    in your code.

    References: POSIX for close, the C standard for memset.

提交回复
热议问题