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 π.
ao_string_tokenize(3)configFileLoad(3)optionFileLoad(3)optionFindNextValue(3)optionFindValue(3)optionFree(3)optionGetValue(3)optionLoadLine(3)optionMemberList(3)optionNextValue(3)optionOnlyUsage(3)optionPrintVersion(3)optionPrintVersionAndReturn(3)optionProcess(3)optionRestore(3)optionSaveFile(3)optionSaveState(3)optionUnloadNested(3)optionVersion(3)streqvcmp(3)streqvmap(3)strneqvcmp(3)strtransform(3)
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 ππ«Ά
π¦ where this page comes from
- debian trixie: libopts25-dev 1:5.18.16-7 Β· GPL-3.0-or-later
- nixpkgs unstable: autogen 5.18.16
- ubuntu questing: libopts25-dev 1:5.18.16-7build1
- ubuntu resolute: libopts25-dev 1:5.18.16-7build2 Β· GPL-3.0-or-later
- ubuntu stonking: libopts25-dev 1:5.18.16-9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms