MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / cfprintf

Function cfprintf

cfile/cfile.cpp:778–786  ·  view source on GitHub ↗

Just like stdio fprintf(), except works on a CFILE

Source from the content-addressed store, hash-verified

776
777// Just like stdio fprintf(), except works on a CFILE
778int cfprintf(CFILE *cfp, const char *format, ...) {
779 va_list args;
780 int count;
781 va_start(args, format);
782 count = vfprintf(cfp->file, format, args);
783 va_end(args);
784 cfp->position += count + 1; // count doesn't include terminator
785 return count;
786}
787
788// The following functions write numeric vales to a CFILE. All values are
789// stored to the file in Intel (little-endian) format.

Callers 15

DumpLevelGoalsFunction · 0.85
TabOverMethod · 0.85
CloseNetworkingFunction · 0.85
nw_InitNetworkingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected