os_type(3)
π os_type β bestie's guide to knowing what OS you're on π
okay so this is from the Allegro manual, and honestly? it's giving vital intel. π΅οΈβοΈ this page is os_type(3), and it's here to tell you what operating system Allegro thinks you're running on. no cap.
β¨ SYNOPSIS β¨
#include <allegro.h>
extern int os_type;
that's it. one lil int. she's small but she knows things. π
πΈ DESCRIPTION πΈ
so allegro_init() sets this variable for you β you don't set it yourself, bestie, she sets it β and it'll be one of these values, each one a whole different vibe:
OSTYPE_UNKNOWNβ unknown, or regular MSDOS. literally the "idk her" of OS types πOSTYPE_WIN3β Windows 3.1 or earlierOSTYPE_WIN95β Windows 95OSTYPE_WIN98β Windows 98OSTYPE_WINMEβ Windows MEOSTYPE_WINNTβ Windows NTOSTYPE_WIN2000β Windows 2000OSTYPE_WINXPβ Windows XPOSTYPE_WIN2003β Windows 2003OSTYPE_WINVISTAβ Windows VistaOSTYPE_OS2β OS/2OSTYPE_WARPβ OS/2 Warp 3OSTYPE_DOSEMUβ Linux DOSEMUOSTYPE_OPENDOSβ Caldera OpenDOSOSTYPE_LINUXβ Linux π§OSTYPE_SUNOSβ SunOS/SolarisOSTYPE_FREEBSDβ FreeBSDOSTYPE_NETBSDβ NetBSDOSTYPE_IRIXβ IRIXOSTYPE_DARWINβ DarwinOSTYPE_QNXβ QNXOSTYPE_UNIXβ Unknown Unix variantOSTYPE_BEOSβ BeOSOSTYPE_MACOSβ MacOSOSTYPE_MACOSXβ MacOS X
likeβ¦ that's a whole roster. 25 of them. one of these is gonna be your answer and you're gonna feel so seen. π¦
fr fr: you don't assign this, allegro_init() does. just read it and move on. π
π SEE ALSO π
go read those too, they're the friend group. π«Ά
and that's the whole page, bestie!! this lil number lives in the Allegro manual, version 4.4.3, and yeah β os_type(3) is the moment. mwah. ππβ¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms