In the process of learning C… trying to create a function for some test cases; I want something that prints out the name of each test case taken from input. Just wanted to eliminate some dup code in each test case which is `printf(“Testing foo); etc. Have a function which would be called like this: outTesting(“foo”); Pretty basic, but I’m unfamiliar with some of these data structures; help is appreciated. Here’s what I have so far:
void outTesting(const char *c) {
printf("\n\nTesting %u\n_____________\n\n", (char) *c);
}
Use
%s: