how to set pointer to a memory to NULL using memset?

后端 未结 9 857
执笔经年
执笔经年 2020-12-11 08:35

I have a structure

typedef struct my_s {

   int x;
   ...
} my_T;

my_t * p_my_t;

I want to set the address of p_my_t to

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-11 09:41

    From reading your multi-thread comments I should say there is no safe sequence of code to accomplish your task. You will have to step back and reexamine your algorithm.

提交回复
热议问题