MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / parse_cmd

Function parse_cmd

extern/editline/src/parse.c:276–286  ·  view source on GitHub ↗

parse_cmd(): * Return the command number for the command string given * or -1 if one is not found */

Source from the content-addressed store, hash-verified

274 * or -1 if one is not found
275 */
276protected int
277parse_cmd(EditLine *el, const Char *cmd)
278{
279 el_bindings_t *b = el->el_map.help;
280 size_t i;
281
282 for (i = 0; i < el->el_map.nfunc; i++)
283 if (Strcmp(b[i].name, cmd) == 0)
284 return b[i].func;
285 return -1;
286}

Callers 1

map_bindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected