view Mac/Python/macgetmtime.c @ 2412:75ae104f7e6c legacy-trunk

ported to MPW, moved main() here
author Guido van Rossum <guido@python.org>
date Mon, 20 Feb 1995 23:45:53 +0000
parents c57b5c50a2d2
children d6b292a33cfe
line wrap: on
line source

#include "macstat.h"
#include "rename2.h"

/* Interfaced used by import.c */

long
getmtime(path)
	char *path;
{
	struct macstat st;
	if (macstat(path, &st) != 0)
		return -1L;
	return st.st_mtime;
}