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

Function cmdline_set_prompt

dpdk/lib/cmdline/cmdline.c:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60void
61cmdline_set_prompt(struct cmdline *cl, const char *prompt)
62{
63 if (!cl || !prompt)
64 return;
65 strlcpy(cl->prompt, prompt, sizeof(cl->prompt));
66}
67
68struct cmdline *
69cmdline_new(cmdline_parse_ctx_t *ctx, const char *prompt, int s_in, int s_out)

Callers 2

cmdline_newFunction · 0.85
test_cmdline_fnsFunction · 0.85

Calls 1

strlcpyFunction · 0.50

Tested by 1

test_cmdline_fnsFunction · 0.68