1FcStrCopyFilename(3) FcStrCopyFilename(3)
2
3
4
6 FcStrCopyFilename - create a complete path from a filename
7
9 #include <fontconfig.h>
10
11 FcChar8 * FcStrCopyFilename(const FcChar8 *s);
12 .fi
13
15 FcStrCopyFilename constructs an absolute pathname from s. It converts
16 any leading '~' characters in to the value of the HOME environment
17 variable, and any relative paths are converted to absolute paths using
18 the current working directory. Sequences of '/' characters are con‐
19 verted to a single '/', and names containing the current directory '.'
20 or parent directory '..' are correctly reconstructed. Returns NULL if
21 '~' is the leading character and HOME is unset or disabled (see
22 FcConfigEnableHome).
23
25 Fontconfig version 2.8.0
26
27
28
29 18 November 2009 FcStrCopyFilename(3)