#include #include #define PACKAGE "sample" #define VERSION "1.0" static void usage(void) { fprintf(stderr, "%s v%s (c) 2000 Mats Peterson\n", PACKAGE, VERSION); fprintf(stderr, "usage: %s \n", PACKAGE); exit(0); } int main(int argc, char **argv) { if (argc == 1) usage(); /* Do stuff here */ return 0; } .