oliverschmidt/cc65 — pull request #48 by efornara (2013-10-02 20:12:43+00:00)
Title: fixed timep handling in time()

With the original time.s, the following code (on C64):

#include
#include
time_t _systime(void) {
return 999;
}
void main(void) {
time_t t0 = 100, t1 = 200;
t0 = time(&t1);
printf("%ld %ld\n", t0, t1);
}

leaves t1 unchanged.