Setting a chunk of memory to NULL
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--
The memset() function will do it for you.
------------------------------------------------------------
I am a signature virus. Please add me to your signature so that I may multiply.
------------------------------------------------------------
I am a signature virus. Please add me to your signature so that I may multiply.
It's memset:
Fills 'num' bytes of 'buffer' with the character 'c'.
[edited by - TravisWells on January 30, 2003 12:51:18 AM]
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement