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

Function db_command_trim

freebsd/ddb/db_script.c:245–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245static void
246db_command_trim(char **commandp)
247{
248 char *command;
249
250 command = *commandp;
251 while (db_command_trimmable(*command))
252 command++;
253 while ((strlen(command) > 0) &&
254 db_command_trimmable(command[strlen(command) - 1]))
255 command[strlen(command) - 1] = 0;
256 *commandp = command;
257}
258
259/*
260 * Execute a script, breaking it up into individual commands and passing them

Callers 1

db_script_execFunction · 0.85

Calls 1

db_command_trimmableFunction · 0.85

Tested by

no test coverage detected