File: miscc.c

package info (click to toggle)
mocka 9605-1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 2,488 kB
  • ctags: 105
  • sloc: asm: 452; makefile: 198; sh: 124; ansic: 14
file content (17 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <sys/types.h>
#include <sys/stat.h>

time_t getmtime(path)
    char *path;
{
  struct stat buf;

  if (stat(path,&buf)!=0) {
    return 0;
  } else {
    return buf.st_mtime;
  }
}

/* Just for mtc */
BEGIN_miscc(){}