1SYNCE_GET_DIRECTORY(3) http://www.synce.org/ SYNCE_GET_DIRECTORY(3)
2
3
4
6 synce_get_directory - get synce configuration directory
7
9 #include <synce.h>
10
11 bool synce_get_directory(char ** path);
12
13 bool synce_get_subdirectory(const char * name, char ** path);
14
15 bool synce_get_script_directory(char ** path);
16
18 The synce_get_directory() function provides a string describing the
19 location of the synce configuration directory. If the environment vari‐
20 able SYNCE_CONF_DIR is set, it's value is returned. The default loca‐
21 tion is ~/.synce.
22
23 The synce_get_subdirectory() function provides a string describing the
24 location of the subdirectory name in the synce configuration directory.
25 name cannot contain '/'.
26
27 The synce_get_script_directory() function provides a string describing
28 the location of the script subdirectory in the synce configuration
29 directory.
30
32 Returns true if successful. Fails and returns false if path is an
33 invalid pointer, SYNCE_CONF_DIR is not set and user cannot be deter‐
34 mined, or the directory does not exist.
35
37 synce(7)
38
39
40
41The SynCE Project 2007-08-26 SYNCE_GET_DIRECTORY(3)