Files
LBPM/IO/PIO.hpp
2014-11-11 14:05:39 -05:00

30 lines
391 B
C++

#ifndef included_PIO_hpp
#define included_PIO_hpp
#include "IO/PIO.h"
#include <iostream>
#include <stdarg.h>
#include <cstdio>
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;
}
} // IO namespace
#endif