File: miscc.c

package info (click to toggle)
mocka 9905-2
  • links: PTS
  • area: non-free
  • in suites: potato, sarge, woody
  • size: 5,436 kB
  • ctags: 160
  • sloc: asm: 23,203; makefile: 124; sh: 102; ansic: 23
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(){}