1curl_strequal(3)                libcurl Manual                curl_strequal(3)
2
3
4

NAME

6       curl_strequal, curl_strnequal - case insensitive string comparisons
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       int curl_strequal(char *str1, char *str2);
12
13       int curl_strnequal(char *str1, char *str2, size_t len);
14

DESCRIPTION

16       The  curl_strequal()  function  compares the two strings str1 and str2,
17       ignoring the case of the characters. It returns a non-zero (TRUE) inte‐
18       ger if the strings are identical.
19
20       The  curl_strnequal()  function is similar, except it only compares the
21       first len characters of str1.
22
23       These functions are provided by libcurl to enable applications to  com‐
24       pare strings in a truly portable manner. There are no standard portable
25       case insensitive string comparison functions. These  two  work  on  all
26       platforms.
27

AVAILABILITY

29       These  functions  will be removed from the public libcurl API in a near
30       future. They will instead be made "available"  by  source  code  access
31       only, and then as curlx_strequal() and curlx_strenqual().
32

RETURN VALUE

34       Non-zero if the strings are identical. Zero if they're not.
35

SEE ALSO

37       strcmp(3), strcasecmp(3)
38
39
40
41libcurl 7.69.1                   June 29, 2017                curl_strequal(3)
Impressum