delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/13/09:02:01

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How do i make a printf type func?
Date: Sun, 13 Feb 2000 10:22:44 +0200
Organization: NetVision Israel
Lines: 12
Message-ID: <Pine.SUN.3.91.1000213102159.29873f-100000@is>
References: <001f864e DOT f7539fd2 AT usw-ex0103-018 DOT remarq DOT com>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 950430350 7754 199.203.121.2 (13 Feb 2000 08:25:50 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 13 Feb 2000 08:25:50 GMT
X-Sender: eliz AT is
In-Reply-To: <001f864e.f7539fd2@usw-ex0103-018.remarq.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 12 Feb 2000, Pyros wrote:

> Well, i want to make a function that will recieve a variable
> number of arguements. The first argument tells the function
> how much more arguments there are. I know how to declare it:
> int func(int n,...)
> 
> but i don't know how to address the arguments.

See the "varargs" page of the library reference, it explains this.
From the DOS prompt, type "info libc alpha varargs".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019