streqvmap(3)

🌸 NAME 🌸

okay so bestie, this is the streqvmap(3) page from the Programmer's Manual, and it's literally about setting the character mappings for the streqv functions. πŸ’…

streqvmap β€” Set the character mappings for the streqv functions ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

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

void streqvmap(char from, char to, int ct);

πŸ’– DESCRIPTION πŸ’–

Set the character mapping. πŸŽ€

If the count (ct) is set to zero, then the map is cleared by setting all entries in the map to their index value. otherwise, the From character is mapped to the To character. If ct is greater than 1, then From and To are incremented and the process repeated until ct entries have been set. like, it just keeps going until the count is satisfied, no cap. πŸ”₯

For example:

streqvmap('a', 'A', 26);

will alter the mapping so that all English lower case letters will map to upper case. iconic behavior honestly. 🌈

This function name is mapped to option_streqvmap so as to not conflict with the POSIX name space. iykyk. πŸ‘‘

πŸ“ Parameters πŸ“

  • from β€” Input character
  • to β€” Mapped-to character
  • ct β€” compare length

πŸ’€ ERRORS πŸ’€

none. literally none. 🫢


🧚 SEE ALSO 🧚

The info documentation for the -lopts library. ✨


πŸ’– xoxo, this lil page came from the Programmer's Manual, stamped 2018-08-26, and it's giving streqvmap(3) main character energy β€” mwah πŸ’‹