Setting a chunk of memory to NULL

Started by
2 comments, last by Roof Top Pew Wee 21 years, 3 months ago
I know there''s the the zeromemory function, but that''s a windows function. Isn''t there just a regular ol ascii C version of that function. I remember something like zeromem, but I can''t find it in the sdk. Thanks in advance --Vic--
Advertisement
The memset() function will do it for you.


------------------------------------------------------------
I am a signature virus. Please add me to your signature so that I may multiply.
It's memset:

void *  memset ( void * buffer, int c, size_t num );   


Fills 'num' bytes of 'buffer' with the character 'c'.

[edited by - TravisWells on January 30, 2003 12:51:18 AM]
Beware of that ''NULL'' notation. You set the memory to 0, not to the ''NULL'' pointer.
Angel of Death

This topic is closed to new replies.

Advertisement