delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/03/04:31:19

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Syntax Questions...
Date: Tue, 02 Dec 1997 18:03:15 -0800
Organization: Alcyone Systems
Lines: 22
Message-ID: <3484BDE3.12E1A3B1@alcyone.com>
References: <3480E777 DOT 691C AT mailexcite DOT com>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

BlueShade wrote:

> First, I was wondering if anyone could tell me how to access "ellipses
> variables".  An example of what I'm babbling about is as follows.  If
> I
> define a function:
> 
>         void something( int x, int y, ... );
> 
> How do I access the variables that come in the ...?  Well, that's all
> for now...

The <stdarg.h> routines.  A good ANSI C book, or `info va_start' should
be a good starting point.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                     \
   "Since when can wounded eyes see / If we weren't who we were"
                                   / Joi

- Raw text -


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