gnurl_strequal(3)
π gnurl_strequal(3) π
okay so this is the gnurl_strequal(3) page from the libgnurl Manual β yes bestie, we're doing case-insensitive string comparison lore today. it's giving "curl header files but make it gnurl" energy, and I'm obsessed. π
πΈ NAME πΈ
the main characters of this page are:
curl_strequalcurl_strnequal
and together they're your case insensitive string comparisons besties. periodt. β¨
β¨ SYNOPSIS β¨
no cap, here's the exact include and the exact signatures:
#include <gnurl/curl.h>
int curl_strequal(char *str1, char *str2);
int curl_strnequal(char *str1, char *str2, size_t len);
π¦ DESCRIPTION π¦
okay so here's the tea, bestie:
curl_strequal()compares the two stringsstr1andstr2, ignoring the case of the characters. It returns a non-zero (TRUE) integer if the strings are identical. slay. πcurl_strnequal()is similar, except it only compares the firstlencharacters ofstr1. highkey important detail, iykyk. π«Ά- 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, and these two work on all platforms. iconic behavior fr fr. π
π AVAILABILITY π
okay so listen up: these 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 ascurlx_strequal()andcurlx_strenqual().
not me warning you about the future removal era π β keep those exact names in mind. curlx_strenqual() is literally what's written, bestie, don't come for me. π
π RETURN VALUE π
- Non-zero if the strings are identical.
- Zero if they're not.
that's it, that's the whole vibe check. π«Ά
π SEE ALSO π
go read those too, bestie, they're literally right there. π
xoxo, your manual bestie π β this page came from libcurl 7.12, dated 30 April 2004, and the page name is gnurl_strequal(3). mwah π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms