st/st.c

18 lines
409 B
C
Raw Normal View History

/* See LICENSE file for copyright and license details. */
#include <stdio.h>
#include <stdlib.h>
2008-06-10 20:01:15 +04:00
#include <string.h>
int
2008-06-14 13:03:29 +04:00
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;
}