put_backslash(3)
β¨ put_backslash(3) β¨
the Allegro manual, but make it cute β this is <pink>put_backslash</pink> from the Allegro game programming library, section 3 (library functions, bestie π«Ά)
πΈ NAME πΈ
put_backslash β slaps a path separator onto the end of a path if it needs one. Part of the Allegro game programming library, mwah π
π SYNOPSIS π
#include <allegro.h>
void put_backslash(char *filename);
π¦ DESCRIPTION π¦
Okay so picture this: you hand it a filename, and it looks at the last character. If that last char is not a \, not a /, not a #, and not a device separator (which, for the record, is : under DOS), then this routine will concatenate either a \ or a / onto the end of it β and which one you get depends on the platform you're on. π
Basically it's the "hey bestie, your path is missing its little trailing slash, lemme fix that" function. π
ngl, real talk: ignore the function name. It's out of date. It says "backslash" but it will absolutely hand you a forward slash too. Not its fault. It's doing its best. π
π SEE ALSO π
and that's the whole page, no notes π
courtesy of the Allegro manual, version 4.4.3 β go forth and terminate your paths correctly, you icon, you πβ¨π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms