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

Function db_command_trimmable

freebsd/ddb/db_script.c:229–243  ·  view source on GitHub ↗

* Trim leading/trailing white space in a command so that we don't pass * carriage returns, etc, into DDB command parser. */

Source from the content-addressed store, hash-verified

227 * carriage returns, etc, into DDB command parser.
228 */
229static int
230db_command_trimmable(char ch)
231{
232
233 switch (ch) {
234 case ' ':
235 case '\t':
236 case '\n':
237 case '\r':
238 return (1);
239
240 default:
241 return (0);
242 }
243}
244
245static void
246db_command_trim(char **commandp)

Callers 1

db_command_trimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected