- added const to parameters of StringUtils_startsWith

pull/383/head
Michael Zillgith 3 years ago
parent 3cb6123a63
commit ee2c461ff0

@ -79,7 +79,7 @@ StringUtils_createBufferFromHexString(char* hexString, uint8_t* buffer);
* \brief test if string starts with prefix * \brief test if string starts with prefix
*/ */
LIB61850_INTERNAL bool LIB61850_INTERNAL bool
StringUtils_startsWith(char* string, char* prefix); StringUtils_startsWith(const char* string, const char* prefix);
LIB61850_INTERNAL bool LIB61850_INTERNAL bool
StringUtils_endsWith(const char* str, const char* suffix); StringUtils_endsWith(const char* str, const char* suffix);

@ -230,7 +230,7 @@ StringUtils_createBufferFromHexString(char* hexString, uint8_t* buffer)
} }
bool bool
StringUtils_startsWith(char* string, char* prefix) StringUtils_startsWith(const char* string, const char* prefix)
{ {
int index = 0; int index = 0;

Loading…
Cancel
Save