16 lines
281 B
C
16 lines
281 B
C
#include <string.h>
|
|
|
|
#include "internal/cli/option.h"
|
|
|
|
|
|
const struct command_descriptor *
|
|
find_command(const char *name)
|
|
{
|
|
const struct command_descriptor *cmd;
|
|
|
|
for (cmd = g_commands; NULL != cmd->name; cmd++)
|
|
if (0 == strcmp(cmd->name, name))
|
|
return cmd;
|
|
return NULL;
|
|
}
|
|
|