Public feed #1186288

modtime

public c v1 · immutable
Raw Edit
·published 2008-08-27 12:52 UTC
rendered paste body
/** modtime** This Program was created to display the modification time of* a file in units of seconds since the epoch**/#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>int main(int argc, char *argv[]){    struct stat filestats;    stat(argv[1],&filestats);    printf("%d\n",filestats.st_mtim.tv_sec); }