blob: 8ab4234bc248b847846e8854160054cde7e498a2 [file] [log] [blame]
9487f7f2011-08-03 07:05:30 -07001.\"
2.TH curl_strequal 3 "30 April 2004" "libcurl 7.12" "libcurl Manual"
3.SH NAME
4curl_strequal, curl_strnequal - case insensitive string comparisons
5.SH SYNOPSIS
6.B #include <curl/curl.h>
7.sp
8.BI "int curl_strequal(char *" str1 ", char *" str2 ");"
9.sp
10.BI "int curl_strenqual(char *" str1 ", char *" str2 ", size_t " len ");"
11.SH DESCRIPTION
12The
13.B curl_strequal()
14function compares the two strings \fIstr1\fP and \fIstr2\fP, ignoring the case
15of the characters. It returns a non-zero (TRUE) integer if the strings are
16identical.
17.sp
18The \fBcurl_strnequal()\fP function is similar, except it only compares the
19first \fIlen\fP characters of \fIstr1\fP.
20.sp
21These functions are provided by libcurl to enable applications to compare
22strings in a truly portable manner. There are no standard portable case
23insensitive string comparison functions. These two work on all platforms.
24.SH AVAILABILITY
25These functions will be removed from the public libcurl API in a near
26future. They will instead be made "available" by source code access only, and
27then as curlx_strequal() and curlx_strenqual().
28.SH RETURN VALUE
29Non-zero if the strings are identical. Zero if they're not.
30.SH "SEE ALSO"
31.BR strcmp "(3), " strcasecmp "(3)"