hello everybody
void func1(){
// do something
//exit the function if some error occurs (like segmentation fault) but continue running the rest of the program
}
void func2(){
//do something
//exit the function if some error occurs (like segmentation fault) but continue running the rest of the program
}
int main(){
func1();
func1();
}
Ok for the above program, if any error (such as segmentation fault) occurs in func1, i want the function to end but continue running the rest of the program (i.e func2). I have used exit() and return 0, but not working. HELP!!!