Jump to content
  • Advertisement

Archived

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

Roof Top Pew Wee

Setting a chunk of memory to NULL

This topic is 5738 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!