al_get_allegro_version man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

al_get_allegro_version(3)			     al_get_allegro_version(3)

NAME
       al_get_allegro_version - Allegro 5 API

SYNOPSIS
	      #include <allegro5/allegro.h>

	      uint32_t al_get_allegro_version(void)

DESCRIPTION
       Returns	the  (compiled)	 version of the Allegro library, packed into a
       single	integer	  as	groups	  of	8    bits    in	   the	  form
       (major << 24) | (minor << 16) | (revision << 8) | release.

       You can use code like this to extract them:

	      uint32_t version = al_get_allegro_version();
	      int major = version >> 24;
	      int minor = (version >> 16) & 255;
	      int revision = (version >> 8) & 255;
	      int release = version & 255;

       The  release number is 0 for an unofficial version and 1 or greater for
       an official release.  For example "5.0.2[1]" would be the (first) offi‐
       cial  5.0.2  release  while  "5.0.2[0]" would be a compile of a version
       from the "5.0.2" branch before the official release.

Allegro reference manual			     al_get_allegro_version(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net