Category : Files from Magazines
Archive   : CUJ9301.ZIP
Filename : 1101118B

 
Output of file : 1101118B contained in archive : CUJ9301.ZIP
/* ftime.c: Compare file time stamps */

#include
#include
#include
#include

main()
{
struct stat fs1, fs2;

if (stat("time1.c",&fs1) == 0 &&
stat("time2.c",&fs2) == 0)
{
double interval =
difftime(fs2.st_mtime,fs1.st_mtime);

printf("time1.c %s newer than time2.c\n",
(interval < 0.0) ? "is" : "is not");
return EXIT_SUCCESS;
}
else
return EXIT_FAILURE;
}

/* Output
time1.c is not newer than time2.c
*/

/* End of File */


  3 Responses to “Category : Files from Magazines
Archive   : CUJ9301.ZIP
Filename : 1101118B

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/