put_backslash(3alleg4)

okay bestie, this is the put_backslash(3alleg4) page from the Allegro manual, and it's giving path-separator energy πŸ’…

✨ NAME ✨

put_backslash β€” Puts a path separator at the end of a path if needed. Allegro game programming library. No cap.

πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

void put_backslash(char *filename);

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: if the last character of the filename is not a \, /, #, or a device separator (ie. : under DOS), this routine will concatenate either a \ or / on to it (depending on the platform). It's literally just making sure your path ends with the right little separator, periodt.

Note: real talk, ignore the function name, it's out of date. πŸ™ˆ

🌈 SEE ALSO 🌈


source/version check: this is from Allegro version 4.4.3, and the page is put_backslash(3alleg4). The footer doesn't have a date, so that's the whole story. bye bestie πŸ’–