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

@ -88,3 +88,4 @@ pheiduck on github <47042125+pheiduck@users.noreply.github.com>
neutric on github <5984479+neutric@users.noreply.github.com>
Jan-Piet Mens <jp@mens.de>
Henrik Holst <henrik.holst@millistream.com>
Christian Schmitz <support@monkeybreadsoftware.de>

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)