Files
haiku-beta6/src/kernel/libroot/posix/time/stime.c
T
Jérôme Duval 4fe4cbd39c added implementation of stime
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-04 23:02:54 +00:00

19 lines
262 B
C

/*
** Copyright 2004, Jérôme Duval. All rights reserved.
** Distributed under the terms of the Haiku License.
*/
#include <time.h>
#include <OS.h>
int
stime(const time_t *tp)
{
if (tp == NULL)
return B_ERROR;
set_real_time_clock(*tp);
return B_OK;
}