#include #include #include "buf.h" #include "debug.h" #define BUF_SIZE_1 1024 #define BUF_SIZE_2 2048 void blow_if_error(int err) { if (err < 0) { printf("Should be no error but there is\n"); exit(1); } } #define B(X) PNL();blow_if_error(X); void error_is_good(int err) { if (err >= 0) { printf("Should be error but there is no\n"); exit(1); } } void print_s(char *str, int sz) { int i = 0; for (i=0;i