---
name: "os_type"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/os_type"
---

# os\_type(3alleg)

Stores the detected type of the OS. Allegro game programming library.

## NAME

os\_type - Stores the detected type of the OS. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**extern int os\_type;**

## DESCRIPTION

Set by allegro\_init() to one of the values:

```
   OSTYPE_UNKNOWN    - unknown, or regular MSDOS
   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
```

## SEE ALSO

[**allegro\_init**(3alleg)](/allegro_init/3alleg.md), [**os\_version**(3alleg)](/os_version/3alleg.md), [**os\_multitasking**(3alleg)](/os_multitasking/3alleg.md)
