OT: Please do not cast return of malloc()
by
Anonymous Coward
·
· Score: 1, Funny
In your sig you cast the return value of malloc(). Please do not do this. Since the language was standardized and malloc() returns a void pointer, the cast is not necessary. At worst, it can hide a very serious error in your code if you forget to include stdlib.h. (If you do this, the compiler assumes malloc() returns an int and the returned value may be improperly aligned.. but since you explicitly cast the return value, you're all but preventing the compiler from ever warning you about this.)
Is it just me, or does "bad men of wireless" sound like one of those "beefcake" calendars, possibly featuring shirtless RF engineers in provocative poses [shudder...]
-- Slashdot: come for the pedantry, stay for the condescension.
Re:They know not what they do
by
Anonymous Coward
·
· Score: 1, Funny
They could'nt tell there arse from there elbow either.
Maybe it was because their employees didn't know where the ' goes in COULDN'T, and didn't know the difference between THERE and THEIR...
MEN, of course, means Motorola, Ericsson and Nokia.
Who cares? I wanna see the WOMEN of Wireless!
"Mod, mod, mod...and another troll bites the dust."
In your sig you cast the return value of malloc(). Please do not do this. Since the language was standardized and malloc() returns a void pointer, the cast is not necessary. At worst, it can hide a very serious error in your code if you forget to include stdlib.h. (If you do this, the compiler assumes malloc() returns an int and the returned value may be improperly aligned .. but since you explicitly cast the return value, you're all but preventing the compiler from ever warning you about this.)
That is all.
MEN are the NME.
If you sprinkle when you tinkle, be a sweety, wipe the seaty.
Is it just me, or does "bad men of wireless" sound like one of those "beefcake" calendars, possibly featuring shirtless RF engineers in provocative poses [shudder...]
Slashdot: come for the pedantry, stay for the condescension.
They could'nt tell there arse from there elbow either.
Maybe it was because their employees didn't know where the ' goes in COULDN'T, and didn't know the difference between THERE and THEIR...