📄 curl_strequal.3
字号:
.\" $Id: curl_strequal.3,v 1.2 2004/04/30 08:38:08 bagder Exp $.\".TH curl_strequal 3 "30 April 2004" "libcurl 7.12" "libcurl Manual".SH NAMEcurl_strequal, curl_strnequal - case insensitive string comparisons.SH SYNOPSIS.B #include <curl/curl.h>.sp.BI "int curl_strequal(char *" str1 ", char *" str2 ");".sp.BI "int curl_strenqual(char *" str1 ", char *" str2 ", size_t " len ");".SH DESCRIPTIONThe.B curl_strequal()function compares the two strings \fIstr1\fP and \fIstr2\fP, ignoring the caseof the characters. It returns a non-zero (TRUE) integer if the strings areidentical..spThe \fBcurl_strnequal()\fP function is similar, except it only compares thefirst \fIlen\fP characters of \fIstr1\fP..spThese functions are provided by libcurl to enable applications to comparestrings in a truly portable manner. There are no standard portable caseinsensitive string comparison functions. These two works on all platforms..SH AVAILABILITYThese functions will be removed from the public libcurl API in a nearfuture. They will instead be made "available" by source code access only, andthen as curlx_strequal() and curlx_strenqual()..SH RETURN VALUENon-zero if the strings are identical. Zero if they're not..SH "SEE ALSO".BR strcmp "(3), " strcasecmp "(3)"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -