well, a failure just calls exit(1). Would returning an error code to main() be a better example?