X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=c0_stopgap.c;fp=c0_stopgap.c;h=b33378ce0df2034808d6ae783abf2e710dccbcb5;hb=2ac45c21d5405ca266f3584e04d560e6495985b2;hp=0000000000000000000000000000000000000000;hpb=304647a7672165dd35ffe54884ed9aedcc9bf363;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/c0_stopgap.c b/c0_stopgap.c new file mode 100644 index 0000000..b33378c --- /dev/null +++ b/c0_stopgap.c @@ -0,0 +1,21 @@ +#include +#include +FILE *c0_file = NULL; +static void c0_start( const char *fn ) +{ + c0_file = fopen( fn, "w" ); +} + +static void c0_end(void) +{ + fclose( c0_file ); + c0_file = NULL; +} + +static void c0_echof( const char *fmt, ... ) +{ + va_list args; + va_start( args, fmt ); + vfprintf( c0_file, fmt, args ); + va_end( args ); +}