]> git.lizzy.rs Git - linenoise.git/commitdiff
stringbuf: clarify license
authorSteve Bennett <steveb@workware.net.au>
Thu, 12 Mar 2020 12:24:11 +0000 (22:24 +1000)
committerSteve Bennett <steveb@workware.net.au>
Thu, 12 Mar 2020 12:24:11 +0000 (22:24 +1000)
Signed-off-by: Steve Bennett <steveb@workware.net.au>
stringbuf.c
stringbuf.h

index f83c1b8d54fee7c3964ad68a208c7f0f68db1905..382f8064959e3e4cc105d3ece4a756a0a88f701c 100644 (file)
@@ -1,3 +1,10 @@
+/**
+ * resizable string buffer
+ *
+ * (c) 2017-2020 Steve Bennett <steveb@workware.net.au>
+ *
+ * See utf8.c for licence details.
+ */
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
index 8a04622ce45e0653cccc03b9e7a23d422c2c67aa..8ac6c9a6a05a001b86331272c488ec34acc01d38 100644 (file)
@@ -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 <steveb@workware.net.au>
+ *
+ * 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()
  */