X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/5f287254715dd91f2c508a2a6b9853f0ef4ed785..746931a3d4114f9bd35a43307fd48bfa64ff0d8b:/st.c?ds=inline diff --git a/st.c b/st.c index 8dd7793..8a8804f 100644 --- a/st.c +++ b/st.c @@ -1,12 +1,17 @@ /* See LICENSE file for copyright and license details. */ -#include "util.h" #include +#include +#include int -Xmain(int argc, char *argv[]) { - if(argc == 2 && !strcmp("-v", argv[1])) - eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n"); - else if(argc != 1) - eprint("usage: st [-v]\n"); +main(int argc, char *argv[]) { + if(argc == 2 && !strcmp("-v", argv[1])) { + fprintf(stderr, "st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n"); + exit(EXIT_SUCCESS); + } + else if(argc != 1) { + fprintf(stderr, "usage: st [-v]\n"); + exit(EXIT_FAILURE); + } return 0; }