File: pathsupport.h

package info (click to toggle)
photoprint 0.3.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,708 kB
  • ctags: 3,996
  • sloc: cpp: 17,543; sh: 8,311; ansic: 4,299; makefile: 324
file content (18 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef PATHSUPPORT_H
#define PATHSUPPORT_H

// Wrapper for either getenv("HOME") or g_get_home_dir().

const char *get_homedir();


// substitue_homedir(const char *path)
//
// Accepts a source path argument.  If the source path begins with $HOME" or "~"
// then the user's home directory is substituted.
// Whether or not the directory is substituted, the returned value is a new string
// which may be free()d when finished with.

char *substitute_homedir(const char *path);

#endif