Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Args: var number & var types
Message-ID: <1988May13.203437.2962@utzoo.uucp>
Organization: U of Toronto Zoology
References: 
Date: Fri, 13 May 88 20:34:37 GMT

> Is there any way to declare a function to have two arguments point to the same
> place in the stack-frame? ...

Well, sort of.  If you can make the problem printf-like, with earlier
arguments of fixed types determining the variable-type arguments, then
whatever method your implementation uses for printf should suffice.
If your implementation has a  header, use that.  Second choice is
.  If you have neither of those, it's still possible but the code
will be highly implementation-specific and it's difficult to supply specific
advice.

Note that this is *not* a general way of having two arguments in the same
location; to do that you have to use unions, and doing *that* portably
requires that the caller know about it.
-- 
NASA is to spaceflight as            |  Henry Spencer @ U of Toronto Zoology
the Post Office is to mail.          | {ihnp4,decvax,uunet!mnetor}!utzoo!henry