From 49bea07df704cca9366203082d458b3d90438fbc Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 11 Dec 2010 23:10:13 +0100 Subject: show the path of $CURRENTDIR. Closes #323 --- src/base/system.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/base/system.h') diff --git a/src/base/system.h b/src/base/system.h index 2aca4de1..b3beb056 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -993,6 +993,15 @@ int fs_is_dir(const char *path); */ int fs_chdir(const char *path); +/* + Function: fs_getcwd + Gets the current working directory. + + Returns: + Returns a pointer to the buffer on success, 0 on failure. +*/ +char *fs_getcwd(char *buffer, int buffer_size); + /* Function: fs_parent_dir Get the parent directory of a directory -- cgit 1.4.1