> test(!strcmp(tst_str,buf)==ret,4, "check value\n"); you haven't explanined what the arguments to test do, but you appear to be mixing strcmp idioms. i think you wish either
test(strcmp(test_str, buf) == 0, 4, "check value\n");
or
test(!strcmp(test_str, buf), 4, "check value\n");
- erik
