/*********************************************************************** * * tstamp.c * * A command to be used to display the access, modification, and status * timestamps of given files. * * Author: Chuck Geigner * * * USAGE: $ tstamp /path/file1 /path2/file2, ... /pathn/filen * * 17 Oct 2001 * * ************************************************************************/ #include #include #include #include int main(int argc, char* argv[]) { int i, err; struct stat statbuff; char *adate_str, *mdate_str, *cdate_str; if(argc < 1 || argv[1] == "-h") { printf("USAGE: tstamp [-h] /path/file1 /path2/file2,.../pathn/filen"); exit(0); } for(i=1; i