archie/prospero/lib/pfs/vqfprintf.c
2024-05-27 16:13:40 +02:00

22 lines
497 B
C

/* Copyright (c) 1992 by the University of Southern California. */
/* For copying and distribution information, see the file <usc-copyr.h> */
#include <usc-copyr.h>
#include <pfs.h>
#include <pprot.h>
#include <perrno.h>
/* Returns PFAILURE or PSUCCESS. */
int
vqfprintf(FILE *outf, const char fmt[], va_list ap)
{
int retval;
AUTOSTAT_CHARPP(bufp);
*bufp = vqsprintf_stcopyr(*bufp, fmt, ap);
if (fputs((*bufp), outf) == EOF)
RETURNPFAILURE;
return PSUCCESS;
}