roar_vs_strerr(3)
β¨ NAME β¨
roar_vs_strerr β the lil glow-up function that turns an error code into a lion readable string π
Okay bestie, this is roar_vs_strerr(3) from the RoarAudio Programmer's Manual, and she is serving convenience. Let's get into it π¦
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
const char * roar_vs_strerr(int error);
π DESCRIPTION π
So here's the vibe: you hand this function an error code, and it hands you back a lion readable error message for that code. That's it. That's the whole gig. Iconic behaviour, no notes β¨
Now, the important part β if the error code is unknown or invalid, she does not ghost you. She returns a string representing an unknown error code instead. Unlike roar_error2str(3), which straight up returns NULL. So if you're the kind of person who does not want to be out here handling NULL like it's a situationshipβ¦ this is your girl π«Ά
The returned string lives in constant memory, so do not alter it and do not free it. Leave her alone. She's fine where she is π
Also: this function is thread safe. Take her anywhere, she's chill in every thread πβ¨
π PARAMETERS π
errorβ the error code that should be translated into a string. Just the code. That's it. Give her the number, she gives you the words π
β RETURN VALUE β
Returns a constant string describing the error error. She always comes back with something β no NULL, no drama, no "sorry bestie, nothing to say" π
π EXAMPLES π
FIXME
Not me puttingFIXMEhere. The original really does sayFIXMEand I am not about to invent an example and lie to you, bestie. Facts only, fr fr π
π₯ SEE ALSO π₯
That's the whole page, babes. Written by the fine folks over at RoarAudio, dated May 2011, and yes, roar_vs_strerr(3) really is the name on the tin. Go translate some errors, you main character πβ¨π
π¦ where this page comes from
- ubuntu jammy: libroar-dev 1.0~beta12-4 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms