streqvcmp(3)

πŸ’– streqvcmp(3) β€” the string-equivalence girlie πŸ’–

okay so this page is from the Programmer's Manual, and it's literally about comparing two strings with an equivalence mapping. no cap, that's the whole main character energy here.


✨ NAME ✨

streqvcmp β€” compare two strings with an equivalence mapping.


πŸ’… SYNOPSIS πŸ’…

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

int streqvcmp(char const * str1, char const * str2);

πŸ¦‹ DESCRIPTION πŸ¦‹

Using a character mapping, two strings are compared for β€œequivalence” β€” that's the vibe. Each input character is mapped to a comparison character, and then the mapped-to characters are compared for the two NUL terminated input strings. It's giving character-by-character matchmaking, fr fr.

One important iykyk: this function name is mapped to option_streqvcmp so as to not conflict with the POSIX name space. periodt.

The arguments are iconic and simple:

  • str1 β€” first string
  • str2 β€” second string

πŸ”₯ RETURN VALUE πŸ”₯

the difference between two differing characters β€” that's it, that's the return value. πŸ’…


🚨 ERRORS 🚨

🚨 none checked. Caller responsible for seg faults. That's the original energy, bestie β€” no extra validation promised here. 😭

🌈 SEE ALSO 🌈

First up: the info documentation for the -lopts library. Then the whole friend group:


mwah πŸ’‹ β€” page date 2018-08-26, from the Programmer's Manual, for streqvcmp(3). bye bestie 🫢