#include #include int main(void) { smcc_pp_t pp; core_mem_stream_t input; core_stream_t *output; const char buf[] = "#define A 123 \"asd\"\nA A A\n"; output = pp_init(&pp, core_mem_stream_init(&input, buf, sizeof(buf) - 1, false)); int ch = 0; while (1) { ch = core_stream_next_char(output); if (ch == core_stream_eof) { break; } putc(ch, stdout); } return 0; }