MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / optionMatch

Function optionMatch

modules/dasSQLITE/sqlite/shell.c:21512–21517  ·  view source on GitHub ↗

** Compare the string as a command-line option with either one or two ** initial "-" characters. */

Source from the content-addressed store, hash-verified

21510** initial "-" characters.
21511*/
21512static int optionMatch(const char *zStr, const char *zOpt){
21513 if( zStr[0]!='-' ) return 0;
21514 zStr++;
21515 if( zStr[0]=='-' ) zStr++;
21516 return cli_strcmp(zStr, zOpt)==0;
21517}
21518
21519/*
21520** Delete a file.

Callers 1

do_meta_commandFunction · 0.85

Calls 1

cli_strcmpFunction · 0.85

Tested by

no test coverage detected