diff template/dw.c @ 1384:156e32814c83

Cleanup of the previous commits and added Unix support.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 25 Nov 2011 18:31:54 +0000
parents 896347a9be19
children 0512fbb08abf
line wrap: on
line diff
--- a/template/dw.c	Fri Nov 25 17:51:49 2011 +0000
+++ b/template/dw.c	Fri Nov 25 18:31:54 2011 +0000
@@ -463,7 +463,7 @@
  * current user directory.  Or the root directory if it could
  * not be determined.
  */
-char *dw_user_dir(void)
+char * API dw_app_dir(void)
 {
     static char _user_dir[1024] = "";
 
@@ -480,6 +480,16 @@
 }
 
 /*
+ * Returns a pointer to a static buffer which containes the
+ * private application data directory. 
+ */
+char *dw_app_dir(void)
+{
+    static _dw_app_dir[MAX_PATH+1] = "/";
+    return _dw_app_dir;
+}
+
+/*
  * Displays a debug message on the console...
  * Parameters:
  *           format: printf style format string.