Void is a "function" that does something but never returns a value.. So you have no way of knowing if it was a success or not..
Consider following function... void functionName (void) { // code here } Code (markup): The void before function name says the function has no return type. The one within brackets says the function doesn't accept any parameters. Check in comparison to the following, This function has a return value, still accept no parameters. int functionName (void) { if (success){ return 1; } else{ return 0; } } Code (markup): This one accepts a single parameter but has no return type. void functionName ( int *a) { (*a)++; } Code (markup):