home *** CD-ROM | disk | FTP | other *** search
-
- #include "d4all.h"
- #include "u4error.h"
- #include <time.h>
-
- int u4temp_create( char *file_name )
- {
- int i, h ;
- time_t t ;
-
- time( &t ) ;
- t %= 1000000L ;
-
- for ( i=0; i < 100; i++, t++ )
- {
- c4ltoa( (long) t, file_name+2, -6 ) ;
- file_name[8] = '\000' ;
-
- h = u4open( file_name, 9 ) ;
- if ( h >= 0 ) return h ;
- }
-
- u4error( E_CREATE, "Temporary Working File Create", (char *) 0 ) ;
- return -1 ;
- }
-