os_type(3)

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

πŸ’– 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 earlier
  • OSTYPE_WIN95 β€” Windows 95
  • OSTYPE_WIN98 β€” Windows 98
  • OSTYPE_WINME β€” Windows ME
  • OSTYPE_WINNT β€” Windows NT
  • OSTYPE_WIN2000 β€” Windows 2000
  • OSTYPE_WINXP β€” Windows XP
  • OSTYPE_WIN2003 β€” Windows 2003
  • OSTYPE_WINVISTA β€” Windows Vista
  • OSTYPE_OS2 β€” OS/2
  • OSTYPE_WARP β€” OS/2 Warp 3
  • OSTYPE_DOSEMU β€” Linux DOSEMU
  • OSTYPE_OPENDOS β€” Caldera OpenDOS
  • OSTYPE_LINUX β€” Linux 🐧
  • OSTYPE_SUNOS β€” SunOS/Solaris
  • OSTYPE_FREEBSD β€” FreeBSD
  • OSTYPE_NETBSD β€” NetBSD
  • OSTYPE_IRIX β€” IRIX
  • OSTYPE_DARWIN β€” Darwin
  • OSTYPE_QNX β€” QNX
  • OSTYPE_UNIX β€” Unknown Unix variant
  • OSTYPE_BEOS β€” BeOS
  • OSTYPE_MACOS β€” MacOS
  • OSTYPE_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