strneqvcmp(3)

πŸŽ€ strneqvcmp(3) πŸŽ€

okay so bestie, this is the strneqvcmp page from the Programmer's Manual, and it's literally about comparing two strings with an equivalence mapping. periodt. πŸ’…


✨ NAME ✨

strneqvcmp β€” compare two strings with an equivalence mapping πŸ¦‹


🌸 SYNOPSIS 🌸

#include <your-opts.h>
cc [...] -o outfile infile.c -lopts [...]

int strneqvcmp(char const * str1, char const * str2, int ct);

πŸ’– DESCRIPTION πŸ’–

Using a character mapping, two strings are compared for "equivalence". Each input character is mapped to a comparison character, and then the mapped-to characters are compared for the two NUL terminated input strings. The comparison is limited to ct bytes.

Also important, bestie: this function name is mapped to option_strneqvcmp so it doesn't conflict with the POSIX name space. no cap. ✨

  • str1 β€” first string
  • str2 β€” second string
  • ct β€” compare length

πŸ”₯ RETURN VALUE πŸ”₯

the difference between two differing characters πŸ‘‘


😭 ERRORS 😭

none checked. Caller responsible for seg faults.

πŸ’€ bestie I'm not kidding, none checked β€” the caller is responsible for seg faults. guard your vibes accordingly.

🌈 SEE ALSO 🌈

The info documentation for the -lopts library.


signing off from the iconic strneqvcmp(3) page, stamped 2018-08-26 🫢✨ stay mapped, stay equivalence-y, and pls don't segfault on main πŸŽ€