gnurl_strequal(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ’– 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_strequal
  • curl_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 strings str1 and str2, 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 first len characters of str1. 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 as curlx_strequal() and curlx_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