Changeset 153 for trunk/Lucide/SOURCE/gui/luutils.cpp
- Timestamp:
- Nov 11, 2006, 9:39:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/SOURCE/gui/luutils.cpp
r133 r153 42 42 #include <string.h> 43 43 #include <strstrea.h> 44 #include <stdlib.h> 44 45 #include <string> 45 46 … … 507 508 return z; 508 509 } 510 511 char *getTmpDir( char *buf ) 512 { 513 char *tmpenv = getenv( "TMP" ); 514 strcpy( buf, ( tmpenv == NULL ) ? ".\\" : tmpenv ); 515 if ( buf[ strlen( buf ) - 1 ] != '\\' ) { 516 strcat( buf, "\\" ); 517 } 518 return buf; 519 }
Note: See TracChangeset
for help on using the changeset viewer.