#include "help.h" char help_information(void) { static const char name[] = "CProxy"; static const char subject[] = "proxy server"; static const struct { const char *email; } author = { "aixiao@aixiao.me", }; static const char usage[] = "Usage: [-?hpt] [-s signal] [-c filename]"; static const char *s_help[] = { "", "Options:", " -?,-h : help information", " -p : process number, default 2 process", " -t : timeout minute, default is no timeout", " -s signal : send signal to a master process: stop, quit, restart, reload, status", " -c filename : set configuration file, default CProxy.ini", "", 0 }; fprintf(stderr, "%s %s\n", name, subject); fprintf(stderr, "Author: %s\n", author.email); 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; }