1<html lang="en"> 2<head> 3<title>wcsncasecmp - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Strings.html#Strings" title="Strings"> 9<link rel="prev" href="wcsdup.html#wcsdup" title="wcsdup"> 10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 11<meta http-equiv="Content-Style-Type" content="text/css"> 12<style type="text/css"><!-- 13 pre.display { font-family:inherit } 14 pre.format { font-family:inherit } 15 pre.smalldisplay { font-family:inherit; font-size:smaller } 16 pre.smallformat { font-family:inherit; font-size:smaller } 17 pre.smallexample { font-size:smaller } 18 pre.smalllisp { font-size:smaller } 19 span.sc { font-variant:small-caps } 20 span.roman { font-family:serif; font-weight:normal; } 21 span.sansserif { font-family:sans-serif; font-weight:normal; } 22--></style> 23<link rel="stylesheet" type="text/css" href="../cs.css"> 24</head> 25<body> 26<div class="node"> 27<a name="wcsncasecmp"></a> 28<p> 29Previous: <a rel="previous" accesskey="p" href="wcsdup.html#wcsdup">wcsdup</a>, 30Up: <a rel="up" accesskey="u" href="Strings.html#Strings">Strings</a> 31<hr> 32</div> 33 34<h3 class="section">5.44 <code>wcsncasecmp</code>—case-insensitive wide character string compare</h3> 35 36<p><a name="index-wcsncasecmp-414"></a><strong>Synopsis</strong> 37<pre class="example"> #include <wchar.h> 38 int wcsncasecmp(const wchar_t *<var>a</var>, const wchar_t * <var>b</var>, size_t <var>length</var>); 39 40</pre> 41 <p><strong>Description</strong><br> 42<code>wcsncasecmp</code> compares up to <var>length</var> wide characters 43from the string at <var>a</var> to the string at <var>b</var> in a 44case-insensitive manner. 45 46 <p><br> 47<strong>Returns</strong><br> 48 49 <p>If <code>*</code><var>a</var> sorts lexicographically after <code>*</code><var>b</var> (after 50both are converted to uppercase), <code>wcsncasecmp</code> returns a 51number greater than zero. If the two strings are equivalent, 52<code>wcsncasecmp</code> returns zero. If <code>*</code><var>a</var> sorts 53lexicographically before <code>*</code><var>b</var>, <code>wcsncasecmp</code> returns a 54number less than zero. 55 56 <p><br> 57<strong>Portability</strong><br> 58POSIX-1.2008 59 60 <p><code>wcsncasecmp</code> requires no supporting OS subroutines. It uses 61tolower() from elsewhere in this library. 62 63 <p><br> 64 65 </body></html> 66 67