Article View: es.comp.os.linux.programacion
Article #10140Re: stdarg.h
From: zn�rt
Date: Thu, 28 Mar 2002 14:20
Date: Thu, 28 Mar 2002 14:20
18 lines
1698 bytes
1698 bytes
On 27 Mar 2002 20:09:57 +0100
kuantiko@escomposlinux.org (Jes�s Carrete Monta�a) wrote:
> Buenas.
Uenas
>
> Estoy intentando hacer una funci�n de invocaci�n an�loga a la
> de printf() para escribir por una pipe. El c�digo es el siguiente:
>
> void ircpipe_write(char *format,...)
> {
> va_list args;
No creo que puedas usar va_list de esa forma. Si haces un va_start es para ir obteniendo los argumentos mediante va_arg(), de uno en uno. De todas formas, yo no uso mucho eso el va_*, asi que mejor echar un vistazo al K&R.
saludos
zn�rt
Technical Details
Message-ID:
<20020328152039.756e23b9.visit@www.xopzuey.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!fu-berlin.de!uni-berlin.de!62.57.75.122!not-for-mailReferences:
<87d6xpket6.fsf@meltdown.ion>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,f5da4abf70825f48
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-28 06:19:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!fu-berlin.de!uni-berlin.de!62.57.75.122!not-for-mail
From: zn�rt <visit@www.xopzuey.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: stdarg.h
Date: Thu, 28 Mar 2002 15:20:39 +0100
Organization: xopzuey
Lines: 18
Message-ID: <20020328152039.756e23b9.visit@www.xopzuey.com>
References: <87d6xpket6.fsf@meltdown.ion>
NNTP-Posting-Host: 62.57.75.122
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1017325140 25567342 62.57.75.122 (16 [134350])
X-Newsreader: Sylpheed version 0.7.4 (GTK+ 1.2.10; i586-pc-linux-gnu)
X-Face: /z\)fslPy_Zv0Y>Z*ILZ}'F~pN!=%a2|TJ.6mJ?L5'IdP!z<bsd@#5wIgqKu11Py';Gt{V- G0<hnK!ihx6^6Krh8Y7fEz)~@&IM]RbOHX)'D_Q8^PS[iN!}!+XbFP--n*{Opwe7U/8u_P