CProxy/cproxy_help.c
aixiao e0261c8942 修改: Makefile
修改:     README.md
	修改:     conf.c
	修改:     conf.h
	修改:     conf/cproxy.ini
	修改:     cproxy.c
	修改:     cproxy.h
	新文件:   cproxy_help.c
	新文件:   cproxy_help.h
	修改:     cproxy_request.c
	修改:     cproxy_request.h
	修改:     log/cproxy.pid
2019-02-07 17:26:48 +08:00

37 lines
824 B
C

#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: [-d] [-h]";
static const char *s_help[] = {
" -h: help information",
" -d: daemon",
"",
0
};
fprintf(stderr, "%s %s\n", name, subject);
fprintf(stderr, "%s %s\n", author.c, author.b);
fprintf(stderr, "%s %s\n", author.d, author.a);
fprintf(stderr, "%s %s\n", name, usage);
int l;
for (l = 0; s_help[l]; l++) {
fprintf(stderr, "%s\n", s_help[l]);
}
BUILD("Compile、link.\n");
return 0;
}