[wplug] C Language Question
Jason Jerome
jjerome2 at yahoo.com
Thu Dec 8 09:27:46 EST 2005
Could this just be a maintenance issue? The parameter might have been
used in the past, but no longer used now.
--- "Diana A. Clarion" <dclarion at fnordnet.net> wrote:
> I've been looking at some code that involves signal handlers, and
> have
> encountered a construct I simply don't recognize.
>
> The context: A handler for SIGINT
>
> void intr(int ignore)
> {
> (void)ignore;
> siglongjmp(toplevel, 1);
> }
>
> The construct in question is "(void)ignore;". I just don't seem to
> be able to
> find a reference to it anywhere. Is it a cast to some sort of 'void
> variable',
> to ensure that the variable 'ignore' is unusable, or is it something
> else?
>
> Many much thanks in advance,
> DAC
>
> --
> Diana A. Clarion, Goddess of the Network
> http://www.fnordnet.net/~dclarion
>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
More information about the wplug
mailing list