#include "cproxy_help.h" char help_information(void) { static const char name[] = "cproxy"; static const char subject[] = "proxy server"; static const struct { const char *a, *b, *c, *d; } author = { "aixiao@aixiao.me", "aixiao", "Author:", "Email :", }; static const char usage[] = "Usage: [-?hd] [-s signal] [-c filename]"; static const char *s_help[] = { "", "Options:", " -?,-h : help information", " -d : daemon", " -s signal : send signal to a master process: stop, quit, restart, reload, status", " -c filename : set configuration file (default: conf/cproxy.ini)", "", 0 }; //fprintf(stderr, "%s %s\n", author.c, author.b); fprintf(stderr, "%s %s\n", name, subject); fprintf(stderr, "%s %s\n", author.c, author.a); fprintf(stderr, "%s\n", usage); int l; for (l = 0; s_help[l]; l++) { fprintf(stderr, "%s\n", s_help[l]); } BUILD("Compile态link.\n"); return 0; }