range_str4inbuf(3)
π range_str4inbuf(3) β Library Functions Manual π
okay bestie, this page is from the Library Functions Manual, and it's all about range_str4inbuf β the range check for a string in a buffer. it's giving "stay inside the lines" energy, fr fr.
β¨ NAME β¨
range_str4inbuf β range check for string in buffer
π¦ SYNTAX π¦
#include <libowfat/rangecheck.h>
int range_str4inbuf(const void* buf,size_t len,const void* string);
πΈ DESCRIPTION πΈ
range_str4inbuf checks that the zero terminated UTF-32-string starting at string starts and ends within the buffer buf[0..len-1].
If the string is not 0-terminated but the length is known beforehand, use range_arrayinbuf instead.
π RETURN VALUE π
If the buffer is implausible (buf is NULL or buf+len has an integer overflow), return 0.
If string points before or after the buffer, return 0.
If there is no zero terminator within the buffer, return 0.
Otherwise, return 1.
π SEE ALSO π
and that's the whole vibe, bestie β range_str4inbuf(3), from the Library Functions Manual, signing off ππ«Άβ¨
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms