curl_strequal - Online Linux Manual PageSection : 3
Updated : November 26, 2021
Source : libcurl 7.82.0
Note : libcurl Manual

NAMEcurl_strequal, curl_strnequal - case insensitive string comparisons

SYNOPSIS#include <curl/curl.h> int curl_strequal(char *str1, char *str2); int curl_strnequal(char *str1, char *str2, size_t length);

DESCRIPTIONThe curl_strequal() function compares the two strings str1 and str2, ignoring the case of the characters. It returns a non-zero (TRUE) integer if the strings are identical. The curl_strnequal() function is similar, except it only compares the first lenght characters of str1. 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 work on all platforms.

EXAMPLEif(curl_strequal(name, input)) printf("Name and input matches\n"); if(curl_strnequal(name, input, 5)) printf("Name and input matches in the 5 first bytes\n");

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

RETURN VALUENon-zero if the strings are identical. Zero if they are not.

SEE ALSOstrcmp(3), strcasecmp (3)"
0
Johanes Gumabo
Data Size   :   5,118 byte
man-curl_strequal.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 239,024
Visitor ID   :     :  
Visitor IP   :   3.137.175.166   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_nr_x|149|curl_strequal.3|49|\n");| printf("Name and input matches\\n"); )         (rof_nr_x|149|curl_strequal.3|51|\n");| printf("Name and input matches in the 5 first bytes\\n"); )