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

Function is_comment

dpdk/app/graph/cli.c:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49static struct cmdline *cl;
50
51static int
52is_comment(char *in)
53{
54 if ((strlen(in) && index("!#%;", in[0])) ||
55 (strncmp(in, "//", 2) == 0) ||
56 (strncmp(in, "--", 2) == 0))
57 return 1;
58
59 return 0;
60}
61
62void
63cli_init(void)

Callers 1

cli_processFunction · 0.70

Calls 2

strncmpFunction · 0.85
indexEnum · 0.50

Tested by

no test coverage detected