ot::Cli::Utils::CommandEntry::Compare() const method
Compares the entry's name with a given name.
Syntax
int Compare(const char *aName) const; Arguments
aName
The name string to compare with.
Return value
zero means perfect match, positive (> 0) indicates @p aName is larger than entry's name, and negative (< 0) indicates @p aName is smaller than entry's name.
![]()
int Compare(const char *aName) const { return strcmp(aName, mName); }