carta
synce_get_subdirectory(3)

synce_get_subdirectory3

Get synce configuration directory

Part of synce_get_directory(3).

Usage

bool synce_get_directory(char ** path);

bool synce_get_script_directory(char ** path);

Overview

The synce_get_directory() function provides a string describing the location of the synce configuration directory. If the environment variable SYNCE_CONF_DIR is set, it's value is returned. The default location is ~/.synce.

The synce_get_subdirectory() function provides a string describing the location of the subdirectory name in the synce configuration directory. name cannot contain '/'.

The synce_get_script_directory() function provides a string describing the location of the script subdirectory in the synce configuration directory.

Return value

Returns true if successful. Fails and returns false if path is an invalid pointer, SYNCE_CONF_DIR is not set and user cannot be determined, or the directory does not exist.

From libsynce0-dev 0.15-1.1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.