2014-11-11 13:05:39 -06:00
|
|
|
#ifndef included_PIO_hpp
|
|
|
|
#define included_PIO_hpp
|
|
|
|
|
|
|
|
#include "IO/PIO.h"
|
|
|
|
|
2021-03-17 09:24:14 -05:00
|
|
|
#include <cstdio>
|
2014-11-11 13:05:39 -06:00
|
|
|
#include <iostream>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace IO {
|
|
|
|
|
|
|
|
|
|
|
|
inline int printp( const char *format, ... )
|
|
|
|
{
|
2021-03-17 09:24:14 -05:00
|
|
|
va_list ap;
|
|
|
|
va_start( ap, format );
|
2014-11-11 13:05:39 -06:00
|
|
|
char tmp[1024];
|
2021-03-17 09:24:14 -05:00
|
|
|
int n = vsprintf( tmp, format, ap );
|
|
|
|
va_end( ap );
|
2014-11-11 13:05:39 -06:00
|
|
|
pout << tmp;
|
|
|
|
pout.flush();
|
|
|
|
return n;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-03-17 09:24:14 -05:00
|
|
|
} // namespace IO
|
2014-11-11 13:05:39 -06:00
|
|
|
|
|
|
|
#endif
|