X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.180.74.79 with SMTP id r15mr4631512wiv.4.1356141279110; Fri, 21 Dec 2012 17:54:39 -0800 (PST) From: =?ISO-8859-15?Q?Hans-Bernhard_Br=F6ker?= Newsgroups: comp.os.msdos.djgpp Subject: Re: Question about va_* macros Date: Sat, 22 Dec 2012 02:54:36 +0100 Lines: 13 Message-ID: References: <50D48246 DOT 7010706 AT gmx DOT de> <201212211842 DOT qBLIg6qp028482 AT delorie DOT com> <50D50440 DOT 6020308 AT gmx DOT de> Mime-Version: 1.0 X-Trace: news.dfncis.de PlK3iBf2vz7jm1lFBqXVmAG8tFiyFckyFd8xMjntLEh/4j6zWYYlK0c9kuJtIyf8RqG1yyoTef Cancel-Lock: sha1:eOzMN6i1nFM/BJ92SRNYPLuMkdc= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <50D50440.6020308@gmx.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Bytes: 1574 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 22.12.2012 01:52, Juan Manuel Guerrero wrote: > The reason why I have asked this is because according to C99 or POSIX > printf and scanf family of functions shall return EINVAL if there are > insufficient arguments. At least for C99 itself, I'm pretty sure there cannot be any such requirment. The term EINVAL is not mentioned at all in C99, nor C11 for that matter. What both C99 and C11 actually say, for both fscanf and fprint, is: > If there are insufficient arguments for the format, the behavior is > undefined.