comparison 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
comparison
equal deleted inserted replaced
1383:ead81c3d9e4e 1384:156e32814c83
461 /* 461 /*
462 * Returns a pointer to a static buffer which contains the 462 * Returns a pointer to a static buffer which contains the
463 * current user directory. Or the root directory if it could 463 * current user directory. Or the root directory if it could
464 * not be determined. 464 * not be determined.
465 */ 465 */
466 char *dw_user_dir(void) 466 char * API dw_app_dir(void)
467 { 467 {
468 static char _user_dir[1024] = ""; 468 static char _user_dir[1024] = "";
469 469
470 if(!_user_dir[0]) 470 if(!_user_dir[0])
471 { 471 {
475 strcpy(_user_dir, home); 475 strcpy(_user_dir, home);
476 else 476 else
477 strcpy(_user_dir, "/"); 477 strcpy(_user_dir, "/");
478 } 478 }
479 return _user_dir; 479 return _user_dir;
480 }
481
482 /*
483 * Returns a pointer to a static buffer which containes the
484 * private application data directory.
485 */
486 char *dw_app_dir(void)
487 {
488 static _dw_app_dir[MAX_PATH+1] = "/";
489 return _dw_app_dir;
480 } 490 }
481 491
482 /* 492 /*
483 * Displays a debug message on the console... 493 * Displays a debug message on the console...
484 * Parameters: 494 * Parameters: