ANSI C standard library

John F Carr jfc at athena.mit.edu
Fri Apr 26 09:28:32 AEST 1991


In article <1991Apr25.201855.27893 at watdragon.waterloo.edu>
	ccplumb at rose.waterloo.edu (Colin Plumb) writes:
>signal.h - without external interrupts, a portable version can be written,
>	except for SIG_DFL, SIG_ERR and SIG_IGN.

You can declare functions and define the macros to be the addresses of
these functions (the function names need to be among those reserved to the
implementation, for example "__sig_dfl").  The address of a function is a
constant expression according to section 3.4 of the standard.

--
    John Carr (jfc at athena.mit.edu)



More information about the Comp.std.c mailing list