Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wcscspn(3) [linux man page]

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

NAME
wcscspn - search a wide-character string for any of a set of wide characters SYNOPSIS
#include <wchar.h> size_t wcscspn(const wchar_t *wcs, const wchar_t *reject); DESCRIPTION
The wcscspn() function is the wide-character equivalent of the strcspn(3) function. It determines the length of the longest initial seg- ment of wcs which consists entirely of wide-characters not listed in reject. In other words, it searches for the first occurrence in the wide-character string wcs of any of the characters in the wide-character string reject. RETURN VALUE
The wcscspn() function returns the number of wide characters in the longest initial segment of wcs which consists entirely of wide-charac- ters not listed in reject. In other words, it returns the position of the first occurrence in the wide-character string wcs of any of the characters in the wide-character string reject, or wcslen(wcs) if there is none. CONFORMING TO
C99. SEE ALSO
strcspn(3), wcspbrk(3), wcsspn(3) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
1999-07-25 WCSCSPN(3)

Check Out this Related Man Page

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

NAME
wcscspn - search a wide-character string for any of a set of wide characters SYNOPSIS
#include <wchar.h> size_t wcscspn(const wchar_t *wcs, const wchar_t *reject); DESCRIPTION
The wcscspn() function is the wide-character equivalent of the strcspn(3) function. It determines the length of the longest initial seg- ment of wcs which consists entirely of wide-characters not listed in reject. In other words, it searches for the first occurrence in the wide-character string wcs of any of the characters in the wide-character string reject. RETURN VALUE
The wcscspn() function returns the number of wide characters in the longest initial segment of wcs which consists entirely of wide-charac- ters not listed in reject. In other words, it returns the position of the first occurrence in the wide-character string wcs of any of the characters in the wide-character string reject, or wcslen(wcs) if there is none. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +----------+---------------+---------+ |Interface | Attribute | Value | +----------+---------------+---------+ |wcscspn() | Thread safety | MT-Safe | +----------+---------------+---------+ CONFORMING TO
POSIX.1-2001, POSIX.1-2008, C99. SEE ALSO
strcspn(3), wcspbrk(3), wcsspn(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 WCSCSPN(3)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

replace character with tr

Hi, i would like substitute the words containing the character "-" by any other. i've already tried the tr command: tr '\-' 'X', for example. But, this command doesn't work. It gave this: Original text: -i abcd-fe Result text: Xi abcdXfe Result desired: -i abcdXfe Thanks! ;) (3 Replies)
Discussion started by: tmxps
3 Replies

2. Shell Programming and Scripting

Find all palindromes of four characters or less

I got this far that is the code searches the bigtextfile for words with 4 characters or less then store those characters to a palindromes text file. The problem I am having is that I don't know how to find the palindromes. The 4 character words that are stored to palidromes text file must be a... (1 Reply)
Discussion started by: darklord12
1 Replies

3. UNIX for Dummies Questions & Answers

help in finishing 2 commands

the first one: 1. i am trying to build a command that searches a text file and outputs the number of words which consists of two 'b' characters in each word separatly like barby (the b characters must be separated from one another) i tried to use grep filepath then i know that we need... (3 Replies)
Discussion started by: newby2
3 Replies

4. UNIX for Advanced & Expert Users

Checking for certain characters

Could anyone help with the following enquiry.. i have a file in the following format: ID .... VALUE A001 .... 100 B002 .... 200 A004 .... 300 B006 .... 100 A997 .... 200 B776 .... ... (13 Replies)
Discussion started by: SAMZ
13 Replies

5. Shell Programming and Scripting

Counting occurrence of all words in a file

Hi, Given below is the input file: http://i53.tinypic.com/2vmvzb8.png Given below is what the output file should look like: http://i53.tinypic.com/1e6lfq.png I know how to count the occurrence of 1 word from a file, but not all of them. Can someone help please? An explanation on the... (1 Reply)
Discussion started by: r4v3n
1 Replies