about summary refs log tree commit diff
path: root/src/base/system.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-12-11 23:10:13 +0100
committeroy <Tom_Adams@web.de>2010-12-11 23:10:13 +0100
commit49bea07df704cca9366203082d458b3d90438fbc (patch)
treebeb29a5dfb54c725b26306b68b2f87865a262e12 /src/base/system.h
parent48cd9372342b44ced021f04ed98eb608a0c405ca (diff)
downloadzcatch-49bea07df704cca9366203082d458b3d90438fbc.tar.gz
zcatch-49bea07df704cca9366203082d458b3d90438fbc.zip
show the path of $CURRENTDIR. Closes #323
Diffstat (limited to 'src/base/system.h')
-rw-r--r--src/base/system.h9
1 files changed, 9 insertions, 0 deletions
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
@@ -994,6 +994,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