summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/wcwidth.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/wcwidth.c')
-rw-r--r--newlib/libc/string/wcwidth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/string/wcwidth.c b/newlib/libc/string/wcwidth.c
index 2cbd59e18..d886b4aca 100644
--- a/newlib/libc/string/wcwidth.c
+++ b/newlib/libc/string/wcwidth.c
@@ -16,15 +16,15 @@ TRAD_SYNOPSIS
DESCRIPTION
The <<wcwidth>> function shall determine the number of column
- positions required for the wide character wc. The application
- shall ensure that the value of wc is a character representable
+ positions required for the wide character <[wc]>. The application
+ shall ensure that the value of <[wc]> is a character representable
as a wchar_t, and is a wide-character code corresponding to a
valid character in the current locale.
RETURNS
- The <<wcwidth>> function shall either return 0 (if wc is a null
+ The <<wcwidth>> function shall either return 0 (if <[wc]> is a null
wide-character code), or return the number of column positions to
- be occupied by the wide-character code wc, or return -1 (if wc
+ be occupied by the wide-character code <[wc]>, or return -1 (if <[wc]>
does not correspond to a printable wide-character code).
The current implementation of <<wcwidth>> simply sets the width
@@ -32,8 +32,8 @@ RETURNS
tables around.
PORTABILITY
-<<wcwidth>> has been introduced in the Single UNIX Specification Volume 2
-<<wcwidth>> has been marked as extension in Single UNIX Specification Volume 3
+<<wcwidth>> has been introduced in the Single UNIX Specification Volume 2.
+<<wcwidth>> has been marked as an extension in the Single UNIX Specification Volume 3.
*/
#include <_ansi.h>