Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Tagged as

Go to top

How to zero your memory?

, 2 Aug 2011
Rate this:
Please Sign up or sign in to vote.
char szTest[128] = { 0 };;)
char szTest[128] = { 0 };
Wink | ;)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

trotwa

Germany Germany
No Biography provided

Comments and Discussions

 
GeneralRe: Oh yes, I will... :) PinmemberNuri Ismail9-Aug-11 3:58 
GeneralRe: Please repost testing results here. It must be interesting. PinmemberAlexander Voronin9-Aug-11 3:56 
GeneralRe: 'How do you think could it be hit on performance?' Actually ... PinmemberNuri Ismail9-Aug-11 3:45 
GeneralRe: IC for now. Thanx for explanation. This behaviour also prese... PinmemberAlexander Voronin9-Aug-11 3:20 
GeneralRe: Hi Alexander, It's part of C++03 Standard. For example le... PinmemberNuri Ismail9-Aug-11 3:03 
GeneralRe: Thank you very much Alok. I'm glad you like it! :) PinmemberNuri Ismail9-Aug-11 3:05 
GeneralRe: Yes, it is part of C++03. You can try it and it should work... PinmemberNuri Ismail9-Aug-11 3:08 
GeneralRe: Where did you get this? Standard (let's take this http://www... PinmemberAlexander Voronin8-Aug-11 22:41 
GeneralRe: nice thing!... no votes for comment yet, otherwise my 5 for ... PinmemberThatsAlok3-Aug-11 6:33 
GeneralRe: Really? ...never tried it... guess we learn something new ev... PinmemberAlbert Holguin3-Aug-11 4:18 
Generalanyway ur tips is useful as well PinmemberThatsAlok3-Aug-11 6:32 
Generalmight be i am talking about zeroing memory during data excha... PinmemberThatsAlok3-Aug-11 6:27 
GeneralYes, of course. ;) Another one ? The fastet way I know: v... Pinmembertrotwa2-Aug-11 21:19 
GeneralReason for my vote of 4 This works too, but only for static ... PinmemberAlbert Holguin2-Aug-11 11:44 
GeneralRe: For default initialization of dynamic sized arrays C++ provi... PinmemberNuri Ismail2-Aug-11 21:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 2 Aug 2011
Article Copyright 2011 by trotwa
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid