User forums > General (but related to Code::Blocks)
All devs: watch out for memset
(1/1)
byo:
I've just read some note written by Krzysztof Kowalczyk on his blog titled: "memset() considered harmful" ().
He has written that people usually swap second ant third parameter which in case of zeroing some data will do nothing.
There's also a query which shows that at least half of calls is invalid.
I've already checked C::B and it has no such "mistakes" :D
But it may be a good tip to check your code ;)
BYO
MortenMacFly:
Whohooo... found one... in a quite old piece of code. Luckily it was only *one* and obviously it didn't cause any harm. But the number of google results scare me a little... ;-)
With regards, Morten.
Navigation
[0] Message Index
Go to full version