Advertisement Jump to content

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!