WCSNCASECMP(3) Linux Programmer's Manual WCSNCASECMP(3)NAME
wcsncasecmp - compare two fixed-size wide-character strings, ignoring case
SYNOPSIS
#include <wchar.h>
int wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n);
DESCRIPTION
The wcsncasecmp function is the wide-character equivalent of the strncasecmp function. It compares the wide-character string pointed to by
s1 and the wide-character string pointed to by s2, but at most n wide characters from each string, ignoring case differences (towupper,
towlower).
RETURN VALUE
The wcsncasecmp function returns zero if the wide-character strings at s1 and s2, truncated to at most length n, are equal except for case
distinctions. It returns a positive integer if truncated s1 is greater than truncated s2, ignoring case. It returns a negative integer if
truncated s1 is smaller than truncated s2, ignoring case.
CONFORMING TO
This function is a GNU extension.
SEE ALSO strncasecmp(3), wcsncmp(3)NOTES
The behaviour of wcsncasecmp depends on the LC_CTYPE category of the current locale.
GNU 1999-07-25 WCSNCASECMP(3)
Check Out this Related Man Page
WCSNCASECMP(3) Linux Programmer's Manual WCSNCASECMP(3)NAME
wcsncasecmp - compare two fixed-size wide-character strings, ignoring case
SYNOPSIS
#include <wchar.h>
int wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
wcsncasecmp():
Since glibc 2.10:
_POSIX_C_SOURCE >= 200809L
Before glibc 2.10:
_GNU_SOURCE
DESCRIPTION
The wcsncasecmp() function is the wide-character equivalent of the strncasecmp(3) function. It compares the wide-character string pointed
to by s1 and the wide-character string pointed to by s2, but at most n wide characters from each string, ignoring case differences (towup-
per(3), towlower(3)).
RETURN VALUE
The wcsncasecmp() function returns zero if the wide-character strings at s1 and s2, truncated to at most length n, are equal except for
case distinctions. It returns a positive integer if truncated s1 is greater than truncated s2, ignoring case. It returns a negative inte-
ger if truncated s1 is smaller than truncated s2, ignoring case.
VERSIONS
The wcsncasecmp() function is provided in glibc since version 2.1.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+--------------+---------------+----------------+
|Interface | Attribute | Value |
+--------------+---------------+----------------+
|wcsncasecmp() | Thread safety | MT-Safe locale |
+--------------+---------------+----------------+
CONFORMING TO
POSIX.1-2008. This function is not specified in POSIX.1-2001, and is not widely available on other systems.
NOTES
The behavior of wcsncasecmp() depends on the LC_CTYPE category of the current locale.
SEE ALSO strncasecmp(3), wcsncmp(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 2016-03-15 WCSNCASECMP(3)
Hi
I want to make string substitution ignoring case for search but respecting case for subtitute. Ex changing all occurences of "original" in a file to "substitute":
original becomes substitute
Origninal becomes Substitute
ORIGINAL becomes SUBSTITUTE
I know this a little special but it's not... (1 Reply)
HI,
command to cat a readable file by ignoring the first line and last line
or command to cat a readable file by ignoring the lines with delimiter
Please advise on this. (2 Replies)
Discussion started by: thelakbe
2 Replies
4. Post Here to Contact Site Administrators and Moderators
Hi ,
I want a tcl script to search a string ignoring whitespaces in a .log file . It should correctly match . The string are as follows
"Output-Maps 1 1 0 0 0" 1
and
Active Intermediate-Maps 0 0 0 ... (1 Reply)
I'm trying to compare 2 array and print the difference at a 3rd file. However how am i going to compare this 2 arrays by ignoring certain patterns:
For example:
1st array contains:
ctahci
cptcsa0
ctsata:25:seed
cptcsa1:50:seed
ctsata_1:25:seed
2nd array contains:
cptcsa0
ctsata... (0 Replies)
Hi All,
here is an output of my command and the problem is that my output string is truncated, I want to exact the full string, I am on BASH shell, please help me out.
Regards
Rahul
command with Output :
lonss05903:cmdsvc01 /home/cmdsvc01 > ps -aef|grep 'Copy'
cmdsvc01 2642 8675 ... (7 Replies)
HI All,
I am having a requirement on ignoring mismatch on 2 file
File 1:
A,B,US,10.02
A,B,US,10.02
A,B,US,11.02
File 2:
A,B,US,10.02
A,B,US,10.00
A,B,US,12.02
Here I want to ignore the decimal . If I do diff it is showing File1 AND File2 are different.If I ignore the... (2 Replies)