¡@

Home 

c++ Programming Glossary: p_my_t

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

http://stackoverflow.com/questions/398883/how-to-set-pointer-to-a-memory-to-null-using-memset

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 NULL and so far this.. int x ... my_T my_t p_my_t I want to set the address of p_my_t to NULL and so far this is how I've tried to do this memset.. NULL and so far this is how I've tried to do this memset p_my_t 0 sizeof my_t This doesn't not look right to me though. What..