str_chr(3)

πŸ“¦
version 0.34 Β· 3 versions
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing

πŸ’– str_chr(3) πŸ’–

hey bestie, this is the str_chr(3) page from the Library Functions Manual β€” yes, that manual β€” and we’re gonna make it make sense, no cap ✨


🌸 NAME 🌸

str_chr β€” find character in ASCIIZ string


✨ SYNTAX ✨

#include <libowfat/str.h>

size_t str_chr(const char* haystack,char needle);

πŸŽ€ DESCRIPTION πŸŽ€

okay so str_chr returns the index of the first occurrance of needle or \0 in string. that’s the whole vibe: it’s giving β€œwhere’s the first match?” energy, and it’s literally handing you back an index πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹


that’s the whole page, bestie β€” str_chr(3) from the Library Functions Manual, and the footer has no source/version/date line to quote, just the final str_chr(3) tag. mwah πŸ’‹πŸ’…βœ¨