From: MonkeybreadSoftware Date: Thu, 31 Mar 2022 09:25:56 +0000 (+0200) Subject: strcase.h: add comment about the return code X-Git-Tag: curl-7_83_0~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62d5818242a91cbb250110498f6c18719903c06c;p=thirdparty%2Fcurl.git 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 --- diff --git a/.mailmap b/.mailmap index a127ad238c..79c8ff369b 100644 --- a/.mailmap +++ b/.mailmap @@ -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 Henrik Holst +Christian Schmitz diff --git a/lib/strcase.h b/lib/strcase.h index b628656b97..b234d38152 100644 --- a/lib/strcase.h +++ b/lib/strcase.h @@ -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)