Skip to content

Commit

Permalink
Update comments for string compare functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Oct 18, 2021
1 parent c050c10 commit 5ee8121
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lwjson/src/include/lwjson/lwjson.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ lwjson_get_val_string(const lwjson_token_t* token, size_t* str_len) {
/**
* \brief Compare string token with user input string for a case-sensitive match
* \param[in] token: Token with string type
* \param[out] str: String to compare
* \param[in] str: NULL-terminated string to compare
* \return `1` if equal, `0` otherwise
*/
static inline uint8_t
Expand All @@ -209,7 +209,8 @@ lwjson_string_compare(const lwjson_token_t* token, const char* str) {
/**
* \brief Compare string token with user input string for a case-sensitive match
* \param[in] token: Token with string type
* \param[out] str: String to compare
* \param[in] str: NULL-terminated string to compare
* \param[in] len: Length of the string in bytes
* \return `1` if equal, `0` otherwise
*/
static inline uint8_t
Expand Down

0 comments on commit 5ee8121

Please sign in to comment.