Can anyone find a system on which this doesn't work?

Henry Spencer henry at utzoo.UUCP
Fri Nov 23 04:31:33 AEST 1984


> Does anyone know of any system on which the acat() routine in
> the program test.c (attached) does not work?

Dozens of them.  Acat is taking variable-length argument lists, which
is the kiss of death for portability.  Declaring lots of parameters
and then using them in order is highly machine-dependent; it makes
major assumptions about how the argument list is laid out in memory.
Using <varargs.h> would be a lot better, but even that is not perfect.
There exist machines on which <varargs.h> is unimplementable.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list