buffer_seek(3)

πŸ“¦
version 0.34 Β· 3 versions
, in alpine 3.24, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

πŸ¦‹ buffer_seek(3) πŸ¦‹

okay bestie, welcome to the Library Functions Manual corner of the internet, where today's main character is buffer_seek ✨


✨ NAME ✨

  • buffer_seek β€” removes bytes from the beginning of a string in a buffer πŸ’…

that's it. that's the gig. she's a simple girl with a simple job.


πŸŽ€ SYNTAX πŸŽ€

#include <libowfat/buffer.h>

ssize_t buffer_seek(buffer* b,size_t r);

πŸ’– DESCRIPTION πŸ’–

so like, buffer_seek removes r bytes from the beginning of the string. gone. deleted. not me chopping off the front of your string bestie 😭

one tiny lil rule though:

r can not be larger than the maximum value that ssize_t can represent. that's the ceiling, and you do not get to go past it. no cap.

🌸 RETURN VALUE 🌸

Returns r (or -1 on error). that's the tea πŸ“


🌈 SEE ALSO 🌈

go read those too, they're iconic, iykyk πŸ‘‘


and that's the whole page, bestie πŸ’œ the footer's just buffer_seek(3) and the header's rocking the Library Functions Manual label β€” no version, no date, just pure unproblematic function energy. slay, periodt. πŸ¦‹βœ¨