🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4392

Re: Stdarg

#4392
From: Clive D.W. Feather
Date: Thu, 23 Nov 1995 22:00
14 lines
988 bytes
In article <32b_9511191940@gigo.com>,
Jeff Dunlop <Jeff.Dunlop@dbsoft.gigo.com> wrote:
>Is it an allowable side effect for vprintf or any other vararg
>function to modify the value of the passed arglist? The following
>code fails under Watcom 10.0 because p_arg is modified by the first
>call to vprintf. If I reinitialize p_arg with va_end and va_start,
>the second vprintf works.

That's correct.

-- 
Clive D.W. Feather                       | If you lie to the compiler,
clive@demon.net        (work, preferred) | it will get its revenge.
clive@stdc.demon.co.uk (home)            |   - Henry Spencer
Technical Details
Message-ID: <DIInso.4Ks@stdc.demon.co.uk>
Path: arc1-ca.pugleaf.net!stdc.demon.co.uk!clive
References: <32b_9511191940@gigo.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stdc.demon.co.uk!clive
From: clive@stdc.demon.co.uk (Clive D.W. Feather)
Newsgroups: comp.std.c
Subject: Re: Stdarg
Date: Thu, 23 Nov 1995 22:00:22 GMT
Organization: Demon Internet Limited (personal account)
Message-ID: <DIInso.4Ks@stdc.demon.co.uk>
References: <32b_9511191940@gigo.com>
Reply-To: clive@demon.net
X-NNTP-Posting-Host: stdc.demon.co.uk