From 317697f254676513bcc8f65fedf96c5e28ad1b60 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Thu, 12 Mar 2020 22:24:11 +1000 Subject: [PATCH] stringbuf: clarify license Signed-off-by: Steve Bennett --- stringbuf.c | 7 +++++++ stringbuf.h | 14 +++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/stringbuf.c b/stringbuf.c index f83c1b8..382f806 100644 --- a/stringbuf.c +++ b/stringbuf.c @@ -1,3 +1,10 @@ +/** + * resizable string buffer + * + * (c) 2017-2020 Steve Bennett + * + * See utf8.c for licence details. + */ #include #include #include diff --git a/stringbuf.h b/stringbuf.h index 8a04622..8ac6c9a 100644 --- a/stringbuf.h +++ b/stringbuf.h @@ -1,8 +1,12 @@ #ifndef STRINGBUF_H #define STRINGBUF_H - -/* (c) 2017 Workware Systems Pty Ltd -- All Rights Reserved */ - +/** + * resizable string buffer + * + * (c) 2017-2020 Steve Bennett + * + * See utf8.c for licence details. + */ #ifdef __cplusplus extern "C" { #endif @@ -48,7 +52,7 @@ void sb_free(stringbuf *sb); stringbuf *sb_copy(stringbuf *sb); /** - * Returns the length of the buffer. + * Returns the byte length of the buffer. * * Returns 0 for both a NULL buffer and an empty buffer. */ @@ -98,7 +102,7 @@ static inline char *sb_str(const stringbuf *sb) } /** - * Inserts the given string *before* (zero-based) 'index' in the stringbuf. + * Inserts the given string *before* (zero-based) byte 'index' in the stringbuf. * If index is past the end of the buffer, the string is appended, * just like sb_append() */ -- 2.44.0