Skip to content

Commit

Permalink
lib: Improve str_append_n() comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Aug 30, 2018
1 parent e1e9ff1 commit 228e04c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/str.h
Expand Up @@ -26,7 +26,8 @@ static inline size_t str_len(const string_t *str)
return str->used;
}

/* Append string/character */
/* Append NUL-terminated string. If the trailing NUL isn't found earlier,
append a maximum of max_len characters. */
void str_append_n(string_t *str, const void *cstr, size_t max_len);

static inline void str_append(string_t *str, const char *cstr)
Expand Down

0 comments on commit 228e04c

Please sign in to comment.