iob_adds_free(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– iob_adds_free β€” bestie edition πŸ’–

okay so real talk, this one's from the Library Functions Manual, and it's a lil three-second read, so let's go 🫢


✨ NAME ✨

iob_adds_free β€” add buffer to I/O batch πŸ’…


🌸 SYNTAX 🌸

#include <libowfat/iob.h>

void iob_adds_free(io_batch* b,const char* s);

like. that's the whole thing. short king behavior πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so iob_adds_free schedules the ASCIIZ C string s to be written with the I/O batch b. that's it, that's the job. it doesn't write it this instant, it's not doing the most β€” it's just like "yeah bestie, noted, we'll get to it" πŸŽ€

and here's the part that makes it free in the name: iob_reset will deallocate the string automatically. so once you've handed that string over, you do NOT need to sit there freeing it yourself. iob_reset has it. it's handled. main character energy from iob_reset fr fr 😭

⚠️ lowkey important: the deallocation happens via iob_reset, not by magic and not by vibes. that's the mechanism, that's the deal 🫢

πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, no cap 🌈 it's iob_adds_free(3) from the Library Functions Manual, and the footer's just the page name again with no version or date attached, so like… consider yourself signed off on πŸ’– ✨ πŸŽ€ πŸ¦‹ 🌸 πŸ’