From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <30104453414fc13051b235708f7e74f0@caldo.demon.co.uk> From: Charles Forsyth To: 9fans@cse.psu.edu Subject: Re: [9fans] stdio.h va_list declarations MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-cmdqyxfnbzmyteqeraxogjnjeb" Date: Wed, 9 Oct 2002 17:10:24 +0100 Topicbox-Message-UUID: 01ba6542-eacb-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-cmdqyxfnbzmyteqeraxogjnjeb Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit vfprintf etc don't take variable argument lists, but have one parameter of type va_list that points to a variable argument list. since you're outside the APE environment (or it would be using /sys/include/ape/stdio.h) you need to include before , as for nearly any other Plan 9 include file (despite the comment to the contrary in intro(2)). in practice, you'll typically also need for any real program (eg, to declare exits). --upas-cmdqyxfnbzmyteqeraxogjnjeb Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-admin@cse.psu.edu> Received: from punt-1.mail.demon.net by mailstore for forsyth@caldo.demon.co.uk id 1034178704:10:11795:88; Wed, 09 Oct 2002 15:51:44 GMT Received: from psuvax1.cse.psu.edu ([130.203.4.6]) by punt-1.mail.demon.net id aa1116325; 9 Oct 2002 15:51 GMT Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id B111D19A7A; Wed, 9 Oct 2002 11:51:10 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from mailnw.centurytel.net (mailnw.centurytel.net [209.206.160.237]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id D1AAD19A33 for <9fans@cse.psu.edu>; Wed, 9 Oct 2002 11:50:11 -0400 (EDT) Received: from term4e (pppoe-64-91-102-37.rb.gh.centurytel.net [64.91.102.37]) by mailnw.centurytel.net (8.12.6/8.12.6) with SMTP id g99FoAdt022562 for <9fans@cse.psu.edu>; Wed, 9 Oct 2002 08:50:10 -0700 (PDT) Message-ID: <16d2a7daabbaf56b66e19efb07d17c32@centurytel.net> To: 9fans@cse.psu.edu From: "Skip Tavakkolian" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] stdio.h va_list declarations Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Wed, 9 Oct 2002 08:08:17 -0400 I get: /sys/include/stdio.h:79[temp.cp:405] mixed ansi/old function declaration: vfprintf /sys/include/stdio.h:80[temp.cp:406] mixed ansi/old function declaration: vprintf /sys/include/stdio.h:81[temp.cp:407] mixed ansi/old function declaration: vsprintf /sys/include/stdio.h:82[temp.cp:408] mixed ansi/old function declaration: vsnprintf /sys/include/stdio.h:83[temp.cp:409] mixed ansi/old function declaration: vfscanf it is complaining about the use of va_list instead of '...' in the prototype declaration. --upas-cmdqyxfnbzmyteqeraxogjnjeb--