str_len(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_len(3) πŸ’–

okay so this little icon is str_len(3), and it comes to you straight from the Library Functions Manual. she's lowkey simple, highkey useful, and we're gonna get into it πŸ’…


✨ NAME ✨

str_len β€” find length of ASCIIZ string πŸŽ€


🌸 SYNTAX 🌸

#include <libowfat/str.h>

size_t str_len(const char* string);

yep, that's the whole signature bestie β€” size_t str_len(const char* string); ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

str_len returns the index of the first \0 in string. that's it. that's the whole function. no cap 🫢

so if you're looking for where the ASCIIZ string says "we're done here", str_len hands you the index of that first \0. iconic behavior, honestly πŸ‘‘


🌈 SEE ALSO 🌈


signing off with str_len(3) from the Library Functions Manual β€” footer energy only, no extra drama πŸŽ€πŸ’–πŸ’