aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.h
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 21:31:22 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 21:31:22 -0400
commitce342a04922797cb53557178c54d32c4efafda16 (patch)
treed92372e30a992d950705e1f234bea5ac6405bd67 /gawkapi.h
parentf8424b236fabb881cc977b9e8e2e7c8debf56da0 (diff)
downloadegawk-ce342a04922797cb53557178c54d32c4efafda16.tar.gz
egawk-ce342a04922797cb53557178c54d32c4efafda16.tar.bz2
egawk-ce342a04922797cb53557178c54d32c4efafda16.zip
Document string termination in header files and remove no-longer-needed string termination logic in various places.
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/gawkapi.h b/gawkapi.h
index 975f82df..10eab1cf 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -279,11 +279,7 @@ enum {
* be multibyte encoded in the current locale's encoding and character
* set. Gawk will convert internally to wide characters if necessary.
*
- * Note that the string may not be terminated with a '\0' character.
- * In particular, this happens for field values $n where n > 0 and n < NF,
- * since the string points directly into the $0 buffer. All other strings,
- * including those created by extensions, should be NUL-terminated. In general
- * though, extension code should not assume that the string is NUL-terminated!
+ * Note that the string will always be terminated with a '\0' character.
*/
typedef struct awk_string {
char *str; /* data */