scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <time.h>
 2
 3#include "time.h"
 4
 5extern int _gettimeofday(struct timeval *restrict, void *);
 6
 7time_t
 8time(time_t *t)
 9{
10	struct timeval tv;
11
12	if (_gettimeofday(&tv, NULL) == -1)
13		return -1;
14	if (t)
15		*t = tv.tv_sec;
16	return tv.tv_sec;
17}