mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
Create a branch for audio work
svn path=/branches/audio-bringup/; revision=49478
This commit is contained in:
parent
26c20f3857
commit
5eb25b5c24
20759 changed files with 0 additions and 1141005 deletions
25
lib/sdk/crt/time/time.c
Normal file
25
lib/sdk/crt/time/time.c
Normal 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 = FileTimeToUnixTime(&SystemTime, NULL);
|
||||
|
||||
if (ptime)
|
||||
{
|
||||
*ptime = time;
|
||||
}
|
||||
return time;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue