🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12410

Redefinicion del printf....

#12410
From: sergi
Date: Tue, 31 Jul 2001 07:46
17 lines
1313 bytes
Pues estoy intentando hacer una redefinicion de la funcion printf, pero no 
se como hacer.
por ejemplo:

int Xprint(const char * fmt, arg...){
  printf(fmt, arg...);
  return 1;
}

el primer argumento, pues nada, se como ponerlo, que es la cadena, pero si 
tiene mas (arg....), como ponerlo??  El arg...., esta puesto para indicar 
todos los siguientes.


Saludos y gracias

-- 
Technical Details
Message-ID: <9k5nog$1lt$1@peque.uv.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!newscore.gigabell.net!isdnet!news.rediris.es!news.uv.es!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,434b426e54bae3c0,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-07-31 00:48:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!newscore.gigabell.net!isdnet!news.rediris.es!news.uv.es!not-for-mail
From: <sergi@pusa.informat.uv.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Redefinicion del printf....
Date: 31 Jul 2001 07:46:24 GMT
Organization: Universitat de Valencia
Lines: 17
Distribution: es
Message-ID: <9k5nog$1lt$1@peque.uv.es>
NNTP-Posting-Host: pusa.informat.uv.es
X-Trace: peque.uv.es 996565584 1725 147.156.24.61 (31 Jul 2001 07:46:24 GMT)
X-Complaints-To: postmaster@uv.es
NNTP-Posting-Date: 31 Jul 2001 07:46:24 GMT
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (Linux/2.2.19ext3 (i586))