archie/prospero/lib/pfs/cl_qoprintf.c

32 lines
550 B
C
Raw Permalink Normal View History

2024-05-27 16:13:40 +02:00
/*
* Copyright (c) 1992 by the University of Southern California
*
* For copying and distribution information, please see the file <usc-copyr.h>
*/
#include <usc-copyr.h>
#include <ardp.h>
#include <pfs.h>
#include <pparse.h>
int
cl_qoprintf(OUTPUT out, const char fmt[], ...)
{
va_list ap;
va_start(ap, fmt);
assert(! out->req && out->request);
return vp__add_req(out->request, fmt, ap);
}
int
requesttoout(RREQ req, OUTPUT out)
{
out->request = req;
out->req = NULL;
out->f = NULL;
return PSUCCESS;
}