I added a 'return 0' to the end of main in readdbx.c
and recompiled, so it would return 0 on success. This
was so I could call it from a script and act accordingly.
I think some operating systems, such as Solaris, will
return a 0 by default. But others, such as Linux (on
which I am currently working), do not. Perhaps you
would prefer to use exit(0) or even
exit(EXIT_SUCCESS), rather than return 0, but it would
be nice to have one of those.
Log in to post a comment.