Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Setting a chunk of memory to NULL

This topic is 5589 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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--

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!