/ Published in: C++
This is a custom implementation of printf. You can expand this function to do whatever else you want it to do.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <stdio.h> #include <stdarg.h> void pline(char* str, ...) { char buf[256]; va_list args; va_start(args, str); vsprintf(buf, str, args); va_end(args); printf(buf); }