Path: utzoo!attcan!telly!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!flatlin!ptavv!ralf From: ralf@ptavv.ka.sub.org (Ralf Wenk) Newsgroups: comp.os.minix Subject: vfprintf problem Message-ID: <1991Feb5.180022.01726@ptavv.ka.sub.org> Date: 5 Feb 91 18:00:22 GMT Organization: The known space Lines: 33 Hello *, could someone explain what I am doing wrong ? The following call of vfprintf() will cause a core dump when doing _doprintf(). My system is MINIX ST 1.5.10.2. #include #include FILE *log; char line[LINESIZE+1]; void lprintf ( ctl, argp ) char *ctl; va_list argp; { vfprintf( log, ctl, argp ); } /* lprintf */ Down in the source lprintf() is called like this: lprintf("batch from %s", line ); Is is also interesting, that changing the call to vfprintf( log, ctl, &argp ) will fix it. Do I misunderstand how to use stdarg.h or is this an MINIX ST problem ? I just use it the way vsprintf() uses it. Many thanks, Ralf Wenk -- -- Ralf Wenk -- ralf@ptavv.ka.sub.org