1 | /* Concatenate path components. |
2 | Copyright (C) 2018-2019 Free Software Foundation, Inc. |
3 | |
4 | This program is free software: you can redistribute it and/or modify it |
5 | under the terms of the GNU General Public License as published by the |
6 | Free Software Foundation; either version 3 of the License, or any |
7 | later version. |
8 | |
9 | This program is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | GNU General Public License for more details. |
13 | |
14 | You should have received a copy of the GNU General Public License |
15 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
16 | |
17 | /* Written by Akim Demaille <akim@lrde.epita.fr>. */ |
18 | |
19 | #ifndef _PATH_JOIN_H |
20 | # define _PATH_JOIN_H |
21 | |
22 | # ifdef __cplusplus |
23 | extern "C" { |
24 | # endif |
25 | |
26 | |
27 | /* Concatenate two paths together. PATH2 may be null, or empty, or |
28 | absolute: do what is right. Return a freshly allocated |
29 | filename. */ |
30 | char * |
31 | xpath_join (const char *path1, const char *path2); |
32 | |
33 | |
34 | # ifdef __cplusplus |
35 | } |
36 | # endif |
37 | |
38 | #endif /* _PATH_JOIN_H */ |
39 | |