Hello,
I am trying to create a function that compares lower and upper bound IP addresses. If the lower bound IP address is greater than the upper bound IP address I would like the program to
1. display the error
2. terminate immediately
Problem is, when I use exit(0) to terminate immediately, the error message briefly appears on the console before exiting, hence the user never understands what their error is. Below is the code, kindly help.
if (lower_first > upper_first)
{
printf("Lower-bound IP address > upper-bound IP address");
exit(0);
}