al_make_temp_file(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

NAME πŸ’–

al_make_temp_file β€” Allegro 5 API. That's literally the whole name section, bestie, and it's from the Allegro reference manual.

SYNOPSIS ✨

#include <allegro5/allegro.h>

ALLEGRO_FILE *al_make_temp_file(const char *template, ALLEGRO_PATH **ret_path)

DESCRIPTION πŸ¦‹

Okay so al_make_temp_file makes a temporary randomly named file given a filename template. Slay.

template is a string giving the format of the generated filename, and it should include one or more capital Xs. The Xs are replaced with random alphanumeric characters, produced using a simple pseudo-random number generator only. That's the whole randomness recipe, no cap.

There should be no path separators in template, fr fr. Keep it a filename situation, not a path.

If ret_path is not NULL, the address it points to will be set to point to a new path structure with the name of the temporary file. Cute.

Returns the opened ALLEGRO_FILE(3) on success, NULL on failure. Periodt.


That's the whole page, bestie 🫢 β€” signed off by the Allegro reference manual, page al_make_temp_file(3). No separate date/version line in this footer, just that source name and the page name. πŸ’…πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms