Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wcslen(3) [osf1 man page]

wcslen(3)						     Library Functions Manual							 wcslen(3)

NAME
wcslen - Finds length of wide-character string LIBRARY
Standard C Library (libc) SYNOPSIS
#include <wchar.h> size_t wcslen( const wchar_t *wstr); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: wcslen(): XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies the wide-character string. DESCRIPTION
The wcslen() function returns the number of wide characters, excluding the terminating null wide character, in the string pointed to by the wstr parameter. RETURN VALUES
Upon successful completion, the wcslen() function returns the number of wide characters in the string to which the wstr parameter points. [Tru64 UNIX] The function returns (size_t)-1 if *wstr is not a valid pointer. RELATED INFORMATION
Functions: mbstowcs(3), string(3), strlen(3), wcscat(3), wcsstr(3), wcswcs(3) Others: standards(5) delim off 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