strequate(3)

πŸŽ€ strequate(3) πŸŽ€

okay so this is strequate(3), straight out of the Programmer's Manual, and it's lowkey iconic for one very specific job: mapping a whole list of characters to the same value. no cap, bestie πŸ’–

NAME

strequate β€” map a list of characters to the same value. that's the entire assignment and it ate ✨

SYNOPSIS

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

void strequate(char const * ch_list);

DESCRIPTION

okay so the vibe check is this: every character in the input string gets mapped to the first character in the string πŸ‘‘. like, all of them are matching the leader. periodt.

also, the function name is mapped to option_strequate so it doesn't conflict with the POSIX name space. not me being all careful and namespace-aware πŸ’….

  • ch_list β€” characters to equivalence. that's the list you pass in; its first character becomes the match for every character in the string. slay.

ERRORS

none. literally none. zero errors, zero drama, it's giving peaceful πŸ¦‹.

SEE ALSO

The info documentation for the -lopts library. go read it, iykyk πŸ“š.


and that's the whole page, bestie πŸ’… this one came from the Programmer's Manual with the date 2018-08-26, and the page is strequate(3). byeee, go map those characters 🌈🫢