mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
add Qputs
This commit is contained in:
parent
ca92e5885f
commit
c05db51069
2 changed files with 14 additions and 0 deletions
|
@ -279,6 +279,19 @@ Qprintf (VFile *file, const char *fmt, ...)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
Qputs (VFile *file, const char *buf)
|
||||
{
|
||||
if (file->file)
|
||||
return fputs (buf, file->file);
|
||||
#ifdef HAVE_ZLIB
|
||||
else
|
||||
return gzputs (file->gzfile, buf);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
char *
|
||||
Qgets (VFile *file, char *buf, int count)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue