MCPcopy Create free account
hub / github.com/F-Stack/f-stack / is_comment

Function is_comment

dpdk/examples/ip_pipeline/cli.c:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40#define MSG_CMD_FAIL "Command \"%s\" failed.\n"
41
42static int
43is_comment(char *in)
44{
45 if ((strlen(in) && index("!#%;", in[0])) ||
46 (strncmp(in, "//", 2) == 0) ||
47 (strncmp(in, "--", 2) == 0))
48 return 1;
49
50 return 0;
51}
52
53static const char cmd_mempool_help[] =
54"mempool <mempool_name>\n"

Callers 3

load_dscp_tableFunction · 0.70
cli_processFunction · 0.70
cli_rule_file_processFunction · 0.70

Calls 2

strncmpFunction · 0.85
indexEnum · 0.50

Tested by

no test coverage detected