MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY ilprintf

Function ILAPIENTRY ilprintf

DevIL/src-IL/src/il_files.cpp:385–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384
385ILuint ILAPIENTRY ilprintf(const char *Line, ...)
386{
387 char Buffer[2048]; // Hope this is large enough
388 va_list VaLine;
389 ILuint i;
390
391 va_start(VaLine, Line);
392 vsprintf(Buffer, Line, VaLine);
393 va_end(VaLine);
394
395 i = ilCharStrLen(Buffer);
396 iwrite(Buffer, 1, i);
397
398 return i;
399}
400
401
402// To pad zeros where needed...

Callers

nothing calls this directly

Calls 1

ilCharStrLenFunction · 0.85

Tested by

no test coverage detected