mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 23:05:08 -04:00
9e4d51fb9f
* printutils OK * Add va_end to every variadic function
15 lines
312 B
C
15 lines
312 B
C
#include "global.h"
|
|
|
|
void PrintUtils_VPrintf(PrintCallback* pfn, const char* fmt, va_list args) {
|
|
_Printf(*pfn, pfn, fmt, args);
|
|
}
|
|
|
|
void PrintUtils_Printf(PrintCallback* pfn, const char* fmt, ...) {
|
|
va_list args;
|
|
va_start(args, fmt);
|
|
|
|
PrintUtils_VPrintf(pfn, fmt, args);
|
|
|
|
va_end(args);
|
|
}
|