0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
cpython/Mac/Python/macgetmtime.c

14 lines
170 B
C
Raw Normal View History

#include <stat.h>
1994-01-05 17:17:15 +01:00
/* Interfaced used by import.c */
long
getmtime(path)
char *path;
{
struct stat st;
if (stat(path, &st) != 0)
return -1L;
return st.st_mtime;
}