Re: why is casting malloc a bad thing?

From: Sidney Cadot (sidney_at_jigsaw.nl)
Date: 01/30/04


Date: Fri, 30 Jan 2004 18:39:38 +0100

Dan Pop wrote:

>>Not at all. For example, I do not have to rely on the semantics of
>>trigraphs, since I avoid them like the plague.
>
>
> You may still inadvertently fall upon them, if you're not extremely
> careful. E.g.
>
> puts("Huh??!");

Like for accidental failure to include <stdlib.h>, my compiler help me
by warning about such mishaps. And yes, this /has/ prevented mayhem once
or twice :-)

Best regards,

   Sidney



Relevant Pages

  • Re: Could This Device Really Work As Claimed ???
    ... >Silver is a heavy metal and silver ions are poisionous. ... I would avoid ... Careful, you may give them an idea for another product. ... "Plague bacteria protect cooking oil!". ...
    (sci.chem)
  • Re: parachutes & drogues
    ... so what is a progressively measured response to progressively ... Plan and avoid like the plague. ... towing a "Galerider" type drogue. ...
    (rec.boats.cruising)
  • Re: Re:How To Suspend Thread In Kernel?
    ... Judging from what you say, you just had some bad experience with unsupported ... so that now you avoid everything unsupported like plague. ... guarantee anything, do I - in order to do it, I would have to do a thorough ...
    (microsoft.public.win32.programmer.kernel)
  • Re: FPGA partial/catastrophic failure mode question
    ... and then doing partial reconfiguration from that running ... That not only tells it what wires and logic are or are not in use, but also allows it to avoid clobbering existing wires or logic or injected defects. ... With that foundation in place, I have demonstrated the ability to implement or remove EDIF circuits at will, and arbitrarily add, extend, trim, or remove connections between those circuits and/or the base system, without requiring the slot model mandated by the PR flow. ... It turns out that partial active reconfiguration works really well if one is careful to avoid the kinds of things you allude to. ...
    (comp.arch.fpga)
  • Re: ID Cards and RFID scanning
    ... University and Sheffield Hallam - please avoid them like the plague;-) ... saying was that someone would have to us pretty much illegal RF power levels ... having to place their id card close to a reader. ...
    (uk.radio.amateur)