home *** CD-ROM | disk | FTP | other *** search
- /* Copyright, 1990, Regents of the University of Colorado */
- #define BOOL char
- #define TRUE 1
- #define FALSE 0
- #define MAXNAMESIZE 128
-
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/stat.h>
-
- extern void exit();
-
- int main(argc, argv)
- int argc;
- char *argv[];
- {
- struct stat buf1, buf2;
-
- if (argc < 3)
- {
- (void) fprintf(stderr, "Incorrect number of arguments to dinochk2.\n");
- exit(1);
- }
-
- if (stat(argv[1], &buf1) != 0)
- {
- (void) fprintf(stderr, "dinochk2 unable to access %s.\n", argv[1]);
- exit(1);
- }
-
- if (stat(argv[2], &buf2) != 0)
- exit(1);
-
- if (buf1.st_mtime > buf2.st_mtime)
- exit(1);
-
- return(0);
- }
-
-