Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.

This commit is contained in:
Colin Finck 2017-10-03 07:45:34 +00:00
parent b94e2d8ca0
commit c2c66aff7d
24198 changed files with 0 additions and 37285 deletions

25
sdk/lib/crt/time/time.c Normal file
View file

@ -0,0 +1,25 @@
/*
* COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/sdk/crt/time/time.c
* PURPOSE: Implementation of _time (_time32, _time64)
* PROGRAMER: Timo Kreuzer
*/
#include <precomp.h>
#include <time.h>
#include "bitsfixup.h"
time_t _time(time_t* ptime)
{
FILETIME SystemTime;
time_t time = 0;
GetSystemTimeAsFileTime(&SystemTime);
time = (time_t)FileTimeToUnixTime(&SystemTime, NULL);
if (ptime)
{
*ptime = time;
}
return time;
}