From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17600 invoked by alias); 23 May 2004 22:01:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17485 invoked from network); 23 May 2004 22:01:17 -0000 Received: from unknown (HELO rwcrmhc13.comcast.net) (204.127.198.39) by sourceware.org with SMTP; 23 May 2004 22:01:17 -0000 Received: from as.arizona.edu (dhcp64-134-140-145.walt.bos.wayport.net[64.134.140.145]) by comcast.net (rwcrmhc13) with ESMTP id <2004052322011601500785f2e> (Authid: hdf3); Sun, 23 May 2004 22:01:16 +0000 Message-ID: <40B11F20.7050603@as.arizona.edu> Date: Sun, 23 May 2004 22:01:00 -0000 From: don fisher Organization: caao User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: function call argument count Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-05/txt/msg00261.txt.bz2 Hello, Is there a call that can be made from within a function to determine how many arguments have been passed to it? I feel such a call would be of great assistance when used in conjunction with variable length argument lists. In the "old days", VMS pushed a parameter count as part of the call frame. You could even determine which variables were null, since they always did call by reference and null parameters were indicated by a zero address. Sorry if this is well known, or an invalid request for some reason. thanks don -- ------------------------------------------------------------------- | Don Fisher dfisher@as.arizona.edu | | Steward Observatory | | 933 N. Cherry Ave. VOICE: (520)621-7647 | | University of Arizona FAX: (520)621-9843 | | Tucson, AZ 85721 | -------------------------------------------------------------------