mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Document get_parent_directory more
This commit is contained in:
parent
6848e29307
commit
5cc52b242e
@ -1746,6 +1746,15 @@ get_user_homedir(const char *username)
|
|||||||
* actually examine the filesystem; does a purely syntactic modification.
|
* actually examine the filesystem; does a purely syntactic modification.
|
||||||
*
|
*
|
||||||
* The parent of the root director is considered to be iteself.
|
* The parent of the root director is considered to be iteself.
|
||||||
|
*
|
||||||
|
* Path separators are the forward slash (/) everywhere and additionally
|
||||||
|
* the backslash (\) on Win32.
|
||||||
|
*
|
||||||
|
* Cuts off any number of trailing path separators but otherwise ignores
|
||||||
|
* them for purposes of finding the parent directory.
|
||||||
|
*
|
||||||
|
* Returns 0 if a parent directory was successfully found, -1 otherwise (fname
|
||||||
|
* did not have any path separators or only had them ad the end).
|
||||||
* */
|
* */
|
||||||
int
|
int
|
||||||
get_parent_directory(char *fname)
|
get_parent_directory(char *fname)
|
||||||
|
Loading…
Reference in New Issue
Block a user