al_set_errno(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– al_set_errno β€” Allegro 5 API πŸ’–

okay bestie, welcome to al_set_errno from the Allegro 5 manual, page 3alleg5 ✨ she's a tiny one but she's iconic, no cap.


🌸 SYNOPSIS 🌸

void al_set_errno(int errnum)

πŸ¦‹ DESCRIPTION πŸ¦‹

Set the error number for the calling thread. πŸ’…

that's it, that's the whole vibe. al_set_errno takes your errnum and pins it onto the thread you're currently running on β€” so if you're juggling multiple threads, each one gets to keep its own little error number, fr fr. 🫢

note: it's per-thread, not global. your other threads are NOT getting the memo. πŸ™ˆ

πŸ‘‘ a lil sign-off πŸ‘‘

this page comes to you courtesy of the Allegro reference manual (that's the source, babes) for al_set_errno(3alleg5) β€” go off, set that errno, and slay πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from