carb::extras::isStringPrefix

Defined in carb/extras/StringSafe.h

inline bool carb::extras::isStringPrefix(const char *str, const char *prefix)

Test if one string is a prefix of the other.

Parameters
  • str[in] The string to test.

  • prefix[in] The prefix to test on str.

Returns

true if str begins with prefix.

Returns

false otherwise.