Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wcslen(3) [xfree86 man page]

WCSLEN(3)						     Linux Programmer's Manual							 WCSLEN(3)

NAME
wcslen - determine the length of a wide-character string SYNOPSIS
#include <wchar.h> size_t wcslen(const wchar_t *s); DESCRIPTION
The wcslen() function is the wide-character equivalent of the strlen(3) function. It determines the length of the wide-character string pointed to by s, excluding the terminating null wide character (L''). RETURN VALUE
The wcslen() function returns the number of wide characters in s. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +----------+---------------+---------+ |Interface | Attribute | Value | +----------+---------------+---------+ |wcslen() | Thread safety | MT-Safe | +----------+---------------+---------+ CONFORMING TO
POSIX.1-2001, POSIX.1-2008, C99. SEE ALSO
strlen(3) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU
2015-08-08 WCSLEN(3)

Check Out this Related Man Page

WCSLEN(3)						     Linux Programmer's Manual							 WCSLEN(3)

NAME
wcslen - determine the length of a wide-character string SYNOPSIS
#include <wchar.h> size_t wcslen(const wchar_t *s); DESCRIPTION
The wcslen() function is the wide-character equivalent of the strlen(3) function. It determines the length of the wide-character string pointed to by s, excluding the terminating null wide character (L''). RETURN VALUE
The wcslen() function returns the number of wide characters in s. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +----------+---------------+---------+ |Interface | Attribute | Value | +----------+---------------+---------+ |wcslen() | Thread safety | MT-Safe | +----------+---------------+---------+ CONFORMING TO
POSIX.1-2001, POSIX.1-2008, C99. SEE ALSO
strlen(3) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU
2015-08-08 WCSLEN(3)
Man Page

2 More Discussions You Might Find Interesting

1. Solaris

How do I compile a 64-bit program on SPARC??

Hi, wcslen(), strlen() returns size_t. On 64-bit platform i want to use int like str length is 10. int len = wcslen(str); On 64-bit what should I need to do if i wants the length in int. Because getting error as "Conversion of 64 bit type value to "int" causes truncation". if i... (17 Replies)
Discussion started by: amit_27
17 Replies

2. Programming

How to read extended ASCII characters from stdin?

Hi, I want to read extended ASCII characters from keyboard using c language on unix/linux. How to read extended characters from keyboard or by copy-paste in terminal irrespective of locale set in the system. I want to read the input characters from keyboard, store it in an array or some local... (3 Replies)
Discussion started by: sanzee007
3 Replies