ALLEGRO_SEEK(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ALLEGRO_SEEK ✨

okay bestie, welcome to the Allegro 5 API reference manual, page ALLEGRO_SEEK(3alleg5) πŸ’– this one is short and sweet and honestly kinda iconic β€” it's just an enum that tells Allegro where to start counting from when you're moving around in a file πŸŽ€


🌸 NAME 🌸

ALLEGRO_SEEK β€” the Allegro 5 API enum that picks your seek origin, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

typedef enum ALLEGRO_SEEK

like, that's the whole vibe. you include the header, and boom, the enum exists 🫢


πŸ‘‘ DESCRIPTION πŸ‘‘

so ALLEGRO_SEEK is an enum, and every member of it is basically answering the question "where are we measuring from tho??" 🌈 here's the whole squad, and yes, this is the complete list, i'm not gatekeeping:

  • ALLEGRO_SEEK_SET β€” seek relative to the beginning of the file 🌱 like, start from the very top, main character energy from page one
  • ALLEGRO_SEEK_CUR β€” seek relative to the current file position πŸ“ wherever you're standing right now, that's your origin, periodt
  • ALLEGRO_SEEK_END β€” seek relative to the end of file πŸŒ… yeah we're counting backwards from the finish line, obsessed

that's it. that's the enum. three options, zero drama, all useful πŸ’œ


🌟 SEE ALSO 🌟

  • al_fseek(3alleg5) β€” the actual function that uses these bad boys, go read it next fr fr πŸ”₯

and that's a wrap, bestie πŸ§šπŸ’– this came straight out of the Allegro reference manual, tagged with version 3alleg5 β€” shoutout to the ALLEGRO_SEEK(3alleg5) page for being short enough to read in one group-chat scroll πŸ’€βœ¨ luv u, go seek responsibly πŸŽ€

πŸ“¦ where this page comes from