cpu_vendor(3alleg4)
π cpu_vendor π
okay bestie, welcome to the Allegro manual β yes, that Allegro, the game programming library, and yes we're about to get β¨intimateβ¨ with a single char array. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
cpu_vendor β it holds the CPU vendor name. that's it. that's the whole job. Allegro game programming library, resident tech-girlie π
πΈ SYNOPSIS πΈ
#include <allegro.h>
extern char cpu_vendor[];
like. one line of include and one lil extern. she's low maintenance, she's iconic, she's giving minimal effort maximum payoff π
π DESCRIPTION π
so here's the tea, bestie β
On Intel PCs, this variable contains the CPU vendor name β if known. (if it's not known? bestie it's just not known, we don't make things up in this house π)
On Mac OSX systems, this one holds the PPC subtype name instead. different platform, different flavour, same variable. slay π
On other platforms, this may be an empty string. literally empty. zero characters. a void. a vibe with nothing in it π no cap.
π IMPORTANT TIMING LORE: you can only read this variable after you have calledcheck_cpu()β and good news,check_cpu()is automatically called byallegro_init(), so if you did your init (you did your init, right? π), you're already set up. don't read it before, that's the whole caveat, that's the rule, periodt.
π₯ SEE ALSO π₯
check_cpu(3alleg4)β the one that actually fills this baby in, bestiecpu_family(3alleg4)β the family, for when you need the whole bloodlinecpu_model(3alleg4)β the model, the specific one, the main charactercpu_capabilities(3alleg4)β what your CPU can actually doallegro_init(3alleg4)β the origin story, the big bang, the one that callscheck_cpu()for you π«Ά
and that's the page, bestie!! go forth and read cpu_vendor responsibly (after init, always after init π). mwah π
Allegro, version 4.4.3 β yeah that's the Allegro, and this lil page is cpu_vendor(3alleg4), dropping whenever that version dropped. bye babes, ily, go write some games β¨ππ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms