[wplug] C Language Question
Tom Rhodes
trhodes at FreeBSD.org
Thu Dec 8 00:22:12 EST 2005
On Wed, 7 Dec 2005 23:53:14 -0500
"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?
Cast to void, no return requirement IIRC.
--
Tom Rhodes
More information about the wplug
mailing list