diff --git a/examples/incr_1/amy.c b/examples/incr_1/amy.c new file mode 100644 index 0000000000000000000000000000000000000000..0221f34b9289c36ea81c17e469e02142ef0e182d --- /dev/null +++ b/examples/incr_1/amy.c @@ -0,0 +1,20 @@ +/* This example demonstrates: +- how protocol description structures are created and destroyed +- how connectors are created and destroyed +- there are procedures allowing for debugging the states of connectors +*/ +#include +#include +#include "../../reowolf.h" +#include "../utility.c" + +int main(int argc, char** argv) { + Arc_ProtocolDescription * pd = protocol_description_parse("", 0); + Connector * c = connector_new(pd); + connector_print_debug(c); + + protocol_description_destroy(pd); + connector_print_debug(c); + connector_destroy(c); + return 0; +} \ No newline at end of file