From 5ee81210d98c2fd4a465e7d2f17abcd19f019794 Mon Sep 17 00:00:00 2001 From: Tilen Majerle Date: Mon, 18 Oct 2021 09:18:40 +0200 Subject: [PATCH] Update comments for string compare functions --- lwjson/src/include/lwjson/lwjson.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lwjson/src/include/lwjson/lwjson.h b/lwjson/src/include/lwjson/lwjson.h index 22cd303..72b31bb 100644 --- a/lwjson/src/include/lwjson/lwjson.h +++ b/lwjson/src/include/lwjson/lwjson.h @@ -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 @@ -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