1make_absolute_filename(3)       Allegro manual       make_absolute_filename(3)
2
3
4

NAME

6       make_absolute_filename  -  Makes  an  absolute filename from a path and
7       relative filename. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       char *make_absolute_filename(char *dest, const char *path,  const  char
14       *filename, int size);
15

DESCRIPTION

17       Makes  an  absolute filename from an absolute path and a relative file‐
18       name, storing at most `size' bytes into the `dest' buffer. This is like
19       calling replace_filename() and then canonicalize_filename(). Example:
20
21          char buf[256];
22          ...
23          make_absolute_filename(buf, "/usr/games/",
24                                 "../temp.txt", sizeof(buf));
25          /* This would create /usr/temp.txt */
26

RETURN VALUE

28       Returns a copy of the `dest' parameter.
29
30

SEE ALSO

32       make_relative_filename(3),    is_relative_filename(3),    replace_file‐
33       name(3), canonicalize_filename(3)
34
35
36
37Allegro                          version 4.4.2       make_absolute_filename(3)
Impressum