Files
LBPM/IO/PIO.hpp
2021-03-17 10:24:14 -04:00

30 lines
398 B
C++

#ifndef included_PIO_hpp
#define included_PIO_hpp
#include "IO/PIO.h"
#include <cstdio>
#include <iostream>
#include <stdarg.h>
namespace IO {
inline int printp( const char *format, ... )
{
va_list ap;
va_start( ap, format );
char tmp[1024];
int n = vsprintf( tmp, format, ap );
va_end( ap );
pout << tmp;
pout.flush();
return n;
}
} // namespace IO
#endif