Welcome, Guest. Please login or register.

Author Topic: How do I check size/date of a file in ANSI C?  (Read 4014 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: How do I check size/date of a file in ANSI C?
« on: February 16, 2006, 10:35:00 AM »
Why not simply write a wrapper function that does the job you need and simply have the implementation of that function #ifdef AMIGA ?
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: How do I check size/date of a file in ANSI C?
« Reply #1 on: February 16, 2006, 11:17:26 AM »
Don't both systems measure time (32-bit integer) as the number of seconds since a particular epoch date?

If so, provided you know the difference between them. If memory serves, the Unix epoch is 00:00:00 Jan 01 1970 and the Amiga epoch is 00:00:00 Jan 01 1978

I would assume, if you evaluate the amiga epoch date as a unix datestamp you have a displacement you can use to convert an amiga 32-bit datestamp to a unix one and vice versa.
int p; // A