aixiao
e0261c8942
修改: 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
37 lines
824 B
C
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;
|
|
}
|
|
|