Selaa lähdekoodia

time_ returns time.

woollybah 8 vuotta sitten
vanhempi
commit
379d25a283
2 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 1 1
      stdc.mod/stdc.bmx
  2. 2 0
      stdc.mod/stdc.c

+ 1 - 1
stdc.mod/stdc.bmx

@@ -196,7 +196,7 @@ Function getpeername_:Int( socket:Int,addr:Byte Ptr,addr_len:Int Var )
 
 'time
 
-Function time_( time:Byte Ptr )
+Function time_:Int( time:Byte Ptr )
 Function localtime_:Byte Ptr( time:Byte Ptr )
 Function strftime_:Int( buf:Byte Ptr,size:Int,fmt$,time:Byte Ptr )
 

+ 2 - 0
stdc.mod/stdc.c

@@ -485,6 +485,8 @@ int getpeername_( int socket,void *addr,int *len ){
 
 void time_( void *ttime ){
 	time( (time_t*)ttime );
+time_t time_( void *ttime ){
+	return time( (time_t*)ttime );
 }
 
 void *localtime_( void *ttime ){