Xref: utzoo comp.unix.xenix.misc:174 comp.unix.xenix.sco:2323 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!milano!cactus.org!statham From: statham@cactus.org (Perry L. Statham) Newsgroups: comp.unix.xenix.misc,comp.unix.xenix.sco Subject: problem with varargs.h in Xenix 2.3.3 Keywords: xenix varargs 2.3.3 compiler c Message-ID: <6596@cactus.org> Date: 25 Apr 91 00:28:54 GMT Distribution: usa Organization: Capital Area Central Texas Unix Society, Austin, TX Lines: 49 /* Can anyone tell me why this program does not compile and how to fix it. Operating System: SCO Xenix 2.3.3 Dev Kit Release 2.3.0d Compiler Message: testprog.c(19) : error 65: 'va_alist' : undefined Line 19 is the line that has va_start on it. The release lines for the two header files are: * @(#) stdio.h 1.10 88/10/26 * @(#) varargs.h 1.1 88/10/26 Any help is appreciated. Perry Statham perry@statham.cactus.org (512) 335-3881 (Home) (512) 467-1396 (Work) */ #include #include void sceprintf( char *, ... ); main() { sceprintf("0x%x %d\n",1,1); } void sceprintf( format, ... ) char *format; { FILE *log; va_list argptr; if ((log = fopen("logfile","a+")) != NULL) { va_start(argptr); vfprintf(log,format,argptr); va_end(argptr); fclose(log); } }