X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=original%2Fman3%2Fwcwidth.3;h=14da26d5c99601693f7a52a1f892b3190693664e;hb=4ea6bb24817f6f049d6bbc90ecd77a869876f9b0;hp=87bfca9b74f090cb9961abb707dd54a01f5f4869;hpb=73cdbcd8b7948c6010c7756d89d5c0445ecba990;p=linuxjm%2FLDP_man-pages.git diff --git a/original/man3/wcwidth.3 b/original/man3/wcwidth.3 index 87bfca9b..14da26d5 100644 --- a/original/man3/wcwidth.3 +++ b/original/man3/wcwidth.3 @@ -12,7 +12,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH WCWIDTH 3 2011-09-28 "GNU" "Linux Programmer's Manual" +.TH WCWIDTH 3 2014-01-22 "GNU" "Linux Programmer's Manual" .SH NAME wcwidth \- determine columns needed for a wide character .SH SYNOPSIS @@ -35,13 +35,21 @@ is at least 0. If .I c is null wide character (L\(aq\\0\(aq), the value is 0. -Otherwise \-1 is returned. +Otherwise, \-1 is returned. .SH RETURN VALUE The .BR wcwidth () function returns the number of column positions for .IR c . +.SH ATTRIBUTES +.SS Multithreading (see pthreads(7)) +The +.BR wcwidth () +function is thread-safe with exceptions. +It can be safely used in multithreaded applications, as long as +.BR setlocale (3) +is not called to change the locale during its execution. .SH CONFORMING TO POSIX.1-2001. @@ -60,3 +68,12 @@ current locale. .SH SEE ALSO .BR iswprint (3), .BR wcswidth (3) +.SH COLOPHON +This page is part of release 3.79 of the Linux +.I man-pages +project. +A description of the project, +information about reporting bugs, +and the latest version of this page, +can be found at +\%http://www.kernel.org/doc/man\-pages/.