synce_get_directory(3)

synce_get_directory3

Get synce configuration directory

Usage

#include <synce.h>

bool synce_get_directory(char ** path);

bool synce_get_subdirectory(const char * name, 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.

Releases

Unchanged in 3 releases since Debian 5.0 (Lenny).

  1. 5.0–7

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