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 called check_cpu() β€” and good news, check_cpu() is automatically called by allegro_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 πŸ”₯


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 βœ¨πŸŽ€πŸ’