set_config_hex(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ set_config_hex(3) ✨

okay so bestie, welcome to the Allegro manual πŸ’– this one's called set_config_hex, and it lives in section 3 of the manual. it's part of the Allegro game programming library, and it is so much less scary than it sounds, i promise 🫢


🌸 NAME 🌸

set_config_hex β€” writes a hexadecimal integer in the configuration file. it's giving Allegro game programming library energy ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

void set_config_hex(const char *section, const char *name, int val);

πŸ’… DESCRIPTION πŸ’…

so what it does is: it writes an integer variable to the current config file, but in hexadecimal format. hex. base sixteen. the cool kid number system πŸ”₯

and here's the little note it wants you to know: go read the comments about set_config_string(), because that's where the real tea is β˜• (like, the actual rules and caveats of writing config values live over there, and this function follows the same vibe).

ngl it's literally just "write a number, but spicy" and that's the whole thing πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, they're all in the same friend group πŸ’œ


okay and that's a wrap!! πŸŽ€ this whole page is brought to you by Allegro, version 4.4.3 β€” yes, version 4.4.3, the icon, the moment, the legend πŸ‘‘ tysm for reading, go write some hex, mwah πŸ’–πŸŒΈβœ¨

πŸ“¦ where this page comes from