How do I write:
("Country %d and country %d are not connected\n", d1, d2);
("Returning to the main menu");
to the file stderr, assuming that d1 and d2 already exists above??
I tried to use fprintf but it prints out the sentence too.
I tried to to this but it also prints out the Country.... bla bla bla, how do I just write it to stderr without having to print it?
fprintf(stderr, "Country %d and country %d are not connected\n", d1, d2);
fprintf(stderr, "Returning to the main menu");