strcase.h: add comment about the return code

Tool often we run into expecting this to work like strcmp, but it
returns 1 instead of 0 for match.

Closes #8658
This commit is contained in:
MonkeybreadSoftware 2022-03-31 11:25:56 +02:00 committed by Daniel Stenberg
parent 3bc5b32db5
commit 62d5818242
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,8 @@
* and only compare strings we know are safe for this.
*
* The function is capable of comparing a-z case insensitively.
*
* Result is 1 if text matches and 0 if not.
*/
#define strcasecompare(a,b) Curl_strcasecompare(a,b)