uatof(3alleg4)
β¨ uatof β¨
okay bestie, so this is a page from the Allegro manual β aka the Allegro game programming library π β and today's main character is uatof, a lil function that takes a string and turns it into a double. it's giving "glow up for text" fr fr π¦
πΈ SYNOPSIS πΈ
#include <allegro.h>
double uatof(const char *s);
like yes, that's the whole thing. two lines. she's simple, she's iconic, she eats π
π DESCRIPTION π
so what she does is: take as much of the string as she possibly can and convert it into an equivalent double precision real number. not all of it if it can't β as much as possible, no cap β¨
and the way that she's literally almost exactly like ustrtod(s, NULL)? yeah. that's the vibe. if you know ustrtod you already know her, iykyk π€
π RETURN VALUE π
she hands you back the equivalent value π«Ά
but if the string doesn't actually represent a number? you get zero. that's it. that's the whole mood. zero. π
π SEE ALSO π
go read those too bestie, they're all part of the same friend group π
and that's the page!! this was Allegro version 4.4.3 β mwah, sending u a kiss, stay converting strings, periodt ππ
π¦ 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