MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / at_find_cmd

Function at_find_cmd

components/net/at/src/at_server.c:379–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379static at_cmd_t at_find_cmd(const char *cmd)
380{
381 rt_size_t i = 0;
382
383 RT_ASSERT(cmd_table);
384
385 for (i = 0; i < cmd_num; i++)
386 {
387 if (!strcasecmp(cmd, cmd_table[i].name))
388 {
389 return &cmd_table[i];
390 }
391 }
392 return RT_NULL;
393}
394
395static rt_err_t at_cmd_get_name(const char *cmd_buffer, char *cmd_name)
396{

Callers 1

server_parserFunction · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected