[comp.std.c] Max number of arguments allowed in C?

lupton@uhccux.uhcc.hawaii.edu (Robert Lupton) (10/03/89)

I recently saw some machine generated code that passed many, many
arguments in one argument list. Assuming that they are split across
lines so as not to exceed any line length limit (509? I forget),
is there a limit on the number of arguments allowed? I can imagine that
some argument passing schemes might run into trouble at quite small 
values. I'm not advocating this (we've fixed the code to do it's work
in other ways) but I did wonder...

			Robert

henry@utzoo.uucp (Henry Spencer) (10/03/89)

In article <5002@uhccux.uhcc.hawaii.edu> lupton@uhccux.uhcc.hawaii.edu (Robert Lupton) writes:
>is there a limit on the number of arguments allowed? ...

ANSI C does not promise that it is possible to pass arguments at all.
POSIX does set some minima.
-- 
Nature is blind; Man is merely |     Henry Spencer at U of Toronto Zoology
shortsighted (and improving).  | uunet!attcan!utzoo!henry henry@zoo.toronto.edu