diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-05-27 09:11:58 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-05-27 12:15:42 +0100 |
commit | 9933a963a587349e22862668ea693bc1d4cc6693 (patch) | |
tree | a0dd29e39b376b188363587e48ffd01f2febe3f7 | |
parent | c204037dad82ffa1a131d904e0767da9f793dab7 (diff) | |
download | gcc-9933a963a587349e22862668ea693bc1d4cc6693.zip gcc-9933a963a587349e22862668ea693bc1d4cc6693.tar.gz gcc-9933a963a587349e22862668ea693bc1d4cc6693.tar.bz2 |
doc: Fix typo in description of nonstring attribute
gcc/ChangeLog:
* doc/extend.texi (Common Variable Attributes): Fix typo in
description of nonstring.
(cherry picked from commit 351e60095cfaa73b5ac69222d00e0cd4ae5725d4)
-rw-r--r-- | gcc/doc/extend.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 0978c4c..72b8e37 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7336,7 +7336,7 @@ truncate the copy without appending the terminating @code{NUL} character. Using the attribute makes it possible to suppress the warning. However, when the array is declared with the attribute the call to @code{strlen} is diagnosed because when the array doesn't contain a @code{NUL}-terminated -string the call is undefined. To copy, compare, of search non-string +string the call is undefined. To copy, compare, or search non-string character arrays use the @code{memcpy}, @code{memcmp}, @code{memchr}, and other functions that operate on arrays of bytes. In addition, calling @code{strnlen} and @code{strndup} with such arrays is safe |