diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-06 21:31:22 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-06 21:31:22 -0400 |
commit | ce342a04922797cb53557178c54d32c4efafda16 (patch) | |
tree | d92372e30a992d950705e1f234bea5ac6405bd67 /gawkapi.h | |
parent | f8424b236fabb881cc977b9e8e2e7c8debf56da0 (diff) | |
download | egawk-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.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 */ |