diff options
author | jsorg71 <jsorg71> | 2006-06-18 04:59:19 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-06-18 04:59:19 +0000 |
commit | e0cc29d381b011aa3064af98e1dfd22e18f8f2a9 (patch) | |
tree | 2add7ae039d2a13334c82afa642f4c203aacb0b3 /common | |
parent | e18da60e8faeb34d0d19b84fba00b549e364a5f5 (diff) | |
download | xrdp-proprietary-e0cc29d381b011aa3064af98e1dfd22e18f8f2a9.tar.gz xrdp-proprietary-e0cc29d381b011aa3064af98e1dfd22e18f8f2a9.zip |
added some comments
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index c845c0e0..48488539 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -70,6 +70,8 @@ extern char** environ; #endif /*****************************************************************************/ +/* allocate memory, returns a pointer to it, size bytes are allocated, + if zero is non zero, each byte will be set to zero */ void* g_malloc(int size, int zero) { @@ -84,6 +86,7 @@ g_malloc(int size, int zero) } /*****************************************************************************/ +/* free the memory pointed to by ptr, ptr can be zero */ void g_free(void* ptr) { @@ -94,6 +97,8 @@ g_free(void* ptr) } /*****************************************************************************/ +/* output text to stdout, try to use g_write / g_writeln instead to avoid + linux / windows EOL problems */ void g_printf(char* format, ...) { @@ -612,13 +617,18 @@ g_mkdir(char* dirname) } /*****************************************************************************/ +/* gets the current working directory and puts up to maxlen chars in + dirname + always returns 0 */ char* g_get_current_dir(char* dirname, int maxlen) { #if defined(_WIN32) - return GetCurrentDirectory(maxlen, dirname); + GetCurrentDirectory(maxlen, dirname); + return 0; #else - return getcwd(dirname, maxlen); + getcwd(dirname, maxlen); + return 0; #endif } |