Xref: utzoo comp.sources.games.bugs:893 comp.lang.c:19864 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.sources.games.bugs,comp.lang.c Subject: Re: vsprintf undefined Keywords: vsprintf varargs Message-ID: <10522@smoke.BRL.MIL> Date: 12 Jul 89 04:32:30 GMT References: <3171@puff.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 27 In article <3171@puff.UUCP> kschnitz@puff.UUCP (Soccer Stud) writes: >The problem is vsprintf is undefined using my C libraries. >Does anyone have a simple solution? Please post the answer because >others have had the same problem. Thanks in advance. Well, you could try building the software under the System V environment on your Gould system, since the v*printf() functions exist there. Or, you could dig up the sources to the C library and see whether or not you can readily implement v*printf(); most V7/BSD-derived systems use an internal function named "_doprnt" to implement all the *printf() family, and if you're lucky yours may be suitable for implementing v*printf(). Or, you could replace the form() function you posted with something like the following, which is not "kosher" but nonetheless often works by accident: char * form( z, a, b, c, d, e, f, g, h, i, j ) char *z; int a, b, c, d, e, f, g, h, i, j; { static char result[LINELEN]; (void)sprintf( result, z, a, b, c, d, e, f, g, h, i, j ); return result; }