From 62d5818242a91cbb250110498f6c18719903c06c Mon Sep 17 00:00:00 2001 From: MonkeybreadSoftware Date: Thu, 31 Mar 2022 11:25:56 +0200 Subject: [PATCH] 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 --- .mailmap | 1 + lib/strcase.h | 2 ++ 2 files changed, 3 insertions(+) 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) -- 2.47.3