pipe-io-server/clients/c_cpp/test.c

12 lines
233 B
C
Raw Normal View History

#include "pipe_io.h"
int main() {
pipe_io pipeio = new_pipe_io("in", "out");
const char* line;
while ((line = read_line_pipe_io(&pipeio))) {
send_msg_pipe_io(&pipeio, line);
}
close_pipe_io(&pipeio);
}