1 /* Construct a full filename from a directory and a relative filename.
2 Copyright (C) 2001-2004, 2007-2019 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any 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 #ifndef _CONCAT_FILENAME_H
18 #define _CONCAT_FILENAME_H
25 /* Concatenate a directory filename, a relative filename and an optional
26 suffix. Return a freshly allocated filename. Return NULL and set errno
27 upon memory allocation failure. */
28 extern char *concatenated_filename (const char *directory
,
29 const char *filename
, const char *suffix
);
31 /* Concatenate a directory filename, a relative filename and an optional
32 suffix. Return a freshly allocated filename. */
33 extern char *xconcatenated_filename (const char *directory
,
34 const char *filename
, const char *suffix
);
41 #endif /* _CONCAT_FILENAME_H */