readme: add D
[bison.git] / lib / path-join.h
blob18b6190fe3475e8477aed40d1c1586fcc4d0810c
1 /* Concatenate path components.
2 Copyright (C) 2018-2021 Free Software Foundation, Inc.
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.
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.
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/>. */
17 /* Written by Akim Demaille <akim@lrde.epita.fr>. */
19 #ifndef _PATH_JOIN_H
20 # define _PATH_JOIN_H
22 # ifdef __cplusplus
23 extern "C" {
24 # endif
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);
34 # ifdef __cplusplus
36 # endif
38 #endif /* _PATH_JOIN_H */