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

Function db_inject_line

freebsd/ddb/db_lex.c:70–77  ·  view source on GitHub ↗

* Simulate a line of input into DDB. */

Source from the content-addressed store, hash-verified

68 * Simulate a line of input into DDB.
69 */
70void
71db_inject_line(const char *command)
72{
73
74 strlcpy(db_line, command, sizeof(db_line));
75 db_lp = db_line;
76 db_endlp = db_lp + strlen(command);
77}
78
79/*
80 * In rare cases, we may want to pull the remainder of the line input

Callers 1

db_command_scriptFunction · 0.85

Calls 1

strlcpyFunction · 0.50

Tested by

no test coverage detected