use of (void) type in C
utzoo!decvax!harpo!ihnp4!ihldt!ll1!otuxa!we13!rjk
utzoo!decvax!harpo!ihnp4!ihldt!ll1!otuxa!we13!rjk
Wed Jan 5 21:04:24 AEST 1983
Not only is void used in casting, it can be used (and IS used in USG 5.0
& System V) as function type declarations. An example of such would be
the declaration of a function which is called as the second argument to
signal:
void catchit(){ ++delcnt; }
main()
{ .
.
signal(SIG_INT, catchit);
.
.
Randy King
..we13!rjk
More information about the Comp.lang.c
mailing list