1append_filename(3) Allegro manual append_filename(3)
2
3
4
6 append_filename - Concatenates a filename to a path. Allegro game pro‐
7 gramming library.
8
10 #include <allegro.h>
11
12
13 char *append_filename(char *dest, const char *path, const char *file‐
14 name, int size);
15
17 Concatenates the specified filename onto the end of the specified path,
18 storing at most `size' bytes into the `dest' buffer. If `path' doesn't
19 have a trailing path separator, the function will append one if needed.
20 You can use the same buffer both as input and output because Allegro
21 internally works on a copy of the input before touching `dest'. Exam‐
22 ple:
23
24 append_filename(buf, "/home/user",
25 "prog.bin", sizeof(buf));
26
28 Returns a copy of the `dest' parameter.
29
30
32 replace_filename(3)
33
34
35
36Allegro version 4.4.3 append_filename(3)