diff --git a/examples/bench_8/main.c b/examples/bench_8/main.c new file mode 100644 index 0000000000000000000000000000000000000000..33dba4c347a9317c91f56ac88d7adbbeb7aa4dbc --- /dev/null +++ b/examples/bench_8/main.c @@ -0,0 +1,45 @@ +#include +#include "../../reowolf.h" +#include "../utility.c" +int main(int argc, char** argv) { + int i, forwards; + forwards = atoi(argv[1]); + printf("forwards %d\n", forwards); + unsigned char pdl[] = ""; + Arc_ProtocolDescription * pd = protocol_description_parse(pdl, sizeof(pdl)-1); + printf("Error str `%s`\n", reowolf_error_peek(NULL)); + char logpath[] = "./bench_8.txt"; + Connector * c = connector_new_logging(pd, logpath, sizeof(logpath)-1); + + PortId native_putter, native_getter; + connector_add_port_pair(c, &native_putter, &native_getter); + for (i=0; i