MCPcopy Create free account
hub / github.com/cesanta/mongoose / usage

Function usage

tutorials/http/http-server/main.c:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static void usage(const char *prog) {
82 fprintf(stderr,
83 "Mongoose v.%s\n"
84 "Usage: %s OPTIONS\n"
85 " -H yes|no - enable traffic hexdump, default: '%s'\n"
86 " -S PAT - SSI filename pattern, default: '%s'\n"
87 " -d DIR - directory to serve, default: '%s'\n"
88 " -l ADDR - listening HTTP address, default: '%s'\n"
89 " -u DIR - file upload directory, default: unset\n"
90 " -v LEVEL - debug level, from 0 to 4, default: %d\n",
91 MG_VERSION, prog, s_enable_hexdump, s_ssi_pattern, s_root_dir,
92 s_listening_addr, s_debug_level);
93 exit(EXIT_FAILURE);
94}
95
96int main(int argc, char *argv[]) {
97 char path[MG_PATH_MAX] = ".";

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected