|
|
1.1 ! root 1: #include <sys/types.h> ! 2: #include <sys/stat.h> ! 3: #include <time.h> ! 4: long ! 5: getstamp(filename) ! 6: char *filename; ! 7: { ! 8: long mtime; ! 9: struct stat fbuf, *fp = &fbuf; ! 10: struct tm t, *tp = &t; ! 11: stat(filename, fp); ! 12: t = *localtime(&fp->st_mtime); ! 13: mtime = fp->st_mtime; ! 14: return(mtime); ! 15: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.