Return correct exit code
commit6af3df2625b52053c60063d50a136d3244c92b07
authorTobias Rehbein <tobias.rehbein@web.de>
Mon, 9 Nov 2009 21:58:11 +0000 (9 22:58 +0100)
committerTobias Rehbein <tobias.rehbein@web.de>
Mon, 9 Nov 2009 21:58:11 +0000 (9 22:58 +0100)
tree8aa3d8e8f405d19e5aa261ca8eee9fca912ded69
parent85d22c78c01c3d5cde72ac7bbbddabf49f050acb
Return correct exit code

When oggquiz(1) exits because you requested the usage help using
`-h` it's correct to return the exit code `0`. But if it shows
the usage help because you gave wrong flags `1` has to be
returned as exit code.

 * new function `usage`
 * use `printf` instead of `puts`
 * return exit code `0` if program terminates correctly, `1`
   otherwise
oggquiz.c