ALLEGRO_DATE(3)
β¨ ALLEGRO_DATE β¨
okay bestie, welcome to the Allegro manual π this one's a tiny little macro and honestly? it's giving "small but mighty" energy π
πΈ NAME πΈ
ALLEGRO_DATE</p> β it's defined to a number that holds the release date of Allegro ποΈβ¨
π SYNOPSIS π
#include <allegro.h>
#define ALLEGRO_DATE
π¦ DESCRIPTION π¦
so like, ALLEGRO_DATE gets defined to an integer that contains the release date of Allegro, packed all cute into the format yyyymmdd π«Ά it's literally the date, just squished into one number. iconic behaviour tbh π
here's the vibe, fr fr:
const int year = ALLEGRO_DATE / 10000;
const int month = (ALLEGRO_DATE / 100) % 100;
const int day = ALLEGRO_DATE % 100;
allegro_message("Year %d, month %d, day %d\n",
year, month, day);
see how that works?? you divide to peel the year off the front, modulo to grab the month out the middle, and the leftover is your day π lowkey satisfying ngl π
and that's the whole page bestie, no cap π§ this was ALLEGRO_DATE(3) from the Allegro manual, and it's brought to you by Allegro version 4.4.3 β slay, stay hydrated, and go read some more manpages ππ
π¦ 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