~ubuntu-branches/ubuntu/warty/curl/warty-security

« back to all changes in this revision

Viewing changes to docs/libcurl/curl_strequal.html

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<HTML>
2
 
<BODY>
3
 
<PRE>
4
 
<!-- Manpage converted by man2html 3.0.1 -->
5
 
 
6
 
</PRE>
7
 
<H2>NAME</H2><PRE>
8
 
     curl_strequal, curl_strnequal - case insensitive string com�
9
 
     parisons
10
 
 
11
 
 
12
 
</PRE>
13
 
<H2>SYNOPSIS</H2><PRE>
14
 
     <B>#include</B> <B>&lt;curl/curl.h&gt;</B>
15
 
 
16
 
     <B>int</B> <B>curl_strequal(char</B> <B>*</B><I>str1</I><B>,</B> <B>char</B> <B>*</B><I>str2</I><B>);</B>
17
 
 
18
 
     <B>int</B> <B>curl_strenqual(char</B> <B>*</B><I>str1</I><B>,</B> <B>char</B> <B>*</B><I>str2</I><B>,</B> <B>size_t</B> <I>len</I>
19
 
 
20
 
 
21
 
</PRE>
22
 
<H2>DESCRIPTION</H2><PRE>
23
 
     The <B>curl_strequal()</B> function compares the two  strings  <I>str1</I>
24
 
     and  <I>str2</I>, ignoring the case of the characters. It returns a
25
 
     non-zero (TRUE) integer if the strings are identical.
26
 
 
27
 
     The <B>curl_strnequal()</B> function is  similar,  except  it  only
28
 
     compares the first <I>len</I> characters of <I>str1</I>.
29
 
 
30
 
     These  functions  are provided by libcurl to enable applica�
31
 
     tions to compare strings in a truly portable  manner.  There
32
 
     are  no standard portable case insensitive string comparison
33
 
     functions. These two works on all platforms.
34
 
 
35
 
 
36
 
</PRE>
37
 
<H2>RETURN VALUE</H2><PRE>
38
 
     Non-zero if the strings are identical. Zero if they're  not.
39
 
 
40
 
 
41
 
</PRE>
42
 
<H2>SEE ALSO</H2><PRE>
43
 
     <B>strcmp(3)</B>, <B>strcasecmp(3)</B>
44
 
 
45
 
 
46
 
 
47
 
 
48
 
 
49
 
 
50
 
 
51
 
 
52
 
 
53
 
 
54
 
 
55
 
 
56
 
 
57
 
 
58
 
 
59
 
 
60
 
 
61
 
 
62
 
 
63
 
 
64
 
 
65
 
 
66
 
 
67
 
</PRE>
68
 
<HR>
69
 
<ADDRESS>
70
 
Man(1) output converted with
71
 
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
72
 
</ADDRESS>
73
 
</BODY>
74
 
</HTML>
 
1
<html><head>
 
2
<title>curl_strequal man page</title>
 
3
<meta name="generator" content="roffit 0.7">
 
4
<STYLE type="text/css">
 
5
P.level0 {
 
6
 padding-left: 2em;
 
7
}
 
8
 
 
9
P.level1 {
 
10
 padding-left: 4em;
 
11
}
 
12
 
 
13
P.level2 {
 
14
 padding-left: 6em;
 
15
}
 
16
 
 
17
span.emphasis {
 
18
 font-style: italic;
 
19
}
 
20
 
 
21
span.bold {
 
22
 font-weight: bold;
 
23
}
 
24
 
 
25
span.manpage {
 
26
 font-weight: bold;
 
27
}
 
28
 
 
29
h2.nroffsh {
 
30
 background-color: #e0e0e0;
 
31
}
 
32
 
 
33
span.nroffip {
 
34
 font-weight: bold;
 
35
 font-size: 120%;
 
36
 font-family: monospace;
 
37
}
 
38
 
 
39
p.roffit {
 
40
 text-align: center;
 
41
 font-size: 80%;
 
42
}
 
43
</STYLE>
 
44
</head><body>
 
45
 
 
46
<p class="level0"><a name="NAME"></a><h2 class="nroffsh">NAME</h2>
 
47
<p class="level0">curl_strequal, curl_strnequal - case insensitive string comparisons <a name="SYNOPSIS"></a><h2 class="nroffsh">SYNOPSIS</h2>
 
48
<p class="level0"><span Class="bold">#include &lt;curl/curl.h&gt;</span> 
 
49
<p class="level0"><span Class="bold">int curl_strequal(char * str1 , char * str2 );</span> 
 
50
<p class="level0"><span Class="bold">int curl_strenqual(char * str1 , char * str2 , size_t  len );</span> <a name="DESCRIPTION"></a><h2 class="nroffsh">DESCRIPTION</h2>
 
51
<p class="level0">The <span Class="bold">curl_strequal()</span> function compares the two strings <span Class="emphasis">str1</span> and <span Class="emphasis">str2</span>, ignoring the case of the characters. It returns a non-zero (TRUE) integer if the strings are identical. 
 
52
<p class="level0">The <span Class="bold">curl_strnequal()</span> function is similar, except it only compares the first <span Class="emphasis">len</span> characters of <span Class="emphasis">str1</span>. 
 
53
<p class="level0">These functions are provided by libcurl to enable applications to compare strings in a truly portable manner. There are no standard portable case insensitive string comparison functions. These two works on all platforms. <a name="RETURN"></a><h2 class="nroffsh">RETURN VALUE</h2>
 
54
<p class="level0">Non-zero if the strings are identical. Zero if they're not. <a name="SEE"></a><h2 class="nroffsh">SEE ALSO</h2>
 
55
<p class="level0"><span Class="manpage">strcmp (3)</span> <span Class="manpage">  strcasecmp (3)</span> <p class="roffit">
 
56
 This HTML page was made with <a href="http://daniel.haxx.se/projects/roffit/">roffit</a>.
 
57
</body></html>