os_version(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

hiii bestie πŸ’– welcome to the Allegro manual page for os_version(3) β€” and yes, its ride-or-die os_revision is here too. This whole thing is about the Version of the OS currently running, from the Allegro game programming library. No cap.

  • os_version, os_revision β€” version of the OS currently running, Allegro game programming library.

πŸ“¦ SYNOPSIS πŸ“¦

#include <allegro.h>

extern int os_version;

extern int os_revision;

πŸ’… DESCRIPTION πŸ’…

okay so os_version and os_revision are the major and minor version of the Operating System that's currently running. They get set by allegro_init(). Periodt.

If Allegro, for some reason, was not able to retrieve the version of the Operating System, then os_version and os_revision will be set to -1. It's giving "couldn't get the vibe check from the OS" 😭.

Example time, bestie: under Win98 SE (v4.10.2222), os_version will be set to 4 and os_revision to 10. Iconic.

tiny but important: if Allegro couldn't retrieve the OS version, both os_version and os_revision are -1. That's the whole mood.

πŸ”— SEE ALSO πŸ”—


kisses from the footer: Allegro version 4.4.3, on the os_version(3) page. The date slot is empty on this footer, so no date to spill β€” just version vibes, periodt. πŸ’…πŸ«Άβœ¨

πŸ“¦ where this page comes from