It’s defined by the C standard as 0 for success (credits go to hvd).
But
For greater portability, you can use the macros
EXIT_SUCCESSand
EXIT_FAILUREfor the conventional status value for success and
failure, respectively. They are declared in the filestdlib.h.
(I’m talking about the value returned to the OS from main, exit or similar calls)
As for your function, return what you wish and makes code more readable, as long as you keep it that way along your programs.