0 and pointers.( Re: Abandon NULL for (0))

Henry Spencer henry at utzoo.uucp
Sat Oct 14 03:06:21 AEST 1989


In article <2550107 at hpisod2.HP.COM> decot at hpisod2.HP.COM (Dave Decot) writes:
>> Anyway, it's wrong.  The standard signal() function's signal handlers
>> are NOT variadic; they receive precisely one int argument.
>
>This is why many operating systems on which C is used have had to add
>some other interface (or if they can do it compatibly, add arguments to
>the handling function) to workaround this design defect...

The point is not that more arguments are not useful, nay, important; the
point is that arbitrarily changing the specs for signal handlers was a
terrible mistake and very unportable.  Defining a new interface is the
right approach.
-- 
A bit of tolerance is worth a  |     Henry Spencer at U of Toronto Zoology
megabyte of flaming.           | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list