1al_make_temp_file(3) al_make_temp_file(3)
2
3
4
6 al_make_temp_file - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 ALLEGRO_FILE *al_make_temp_file(const char *template, ALLEGRO_PATH **ret_path)
12
14 Make a temporary randomly named file given a filename `template'.
15
16 `template' is a string giving the format of the generated filename and
17 should include one or more capital Xs. The Xs are replaced with random
18 alphanumeric characters, produced using a simple pseudo-random number
19 generator only. There should be no path separators.
20
21 If `ret_path' is not NULL, the address it points to will be set to
22 point to a new path structure with the name of the temporary file.
23
24 Returns the opened ALLEGRO_FILE(3) on success, NULL on failure.
25
26
27
28Allegro reference manual al_make_temp_file(3)