view Mac/Python/macgetmtime.c @ 2394:fa8cdd3cc545 legacy-trunk

use PyMac_GetArgv (in macgetargv.c) for applet inits
author Guido van Rossum <guido@python.org>
date Sun, 19 Feb 1995 15:52:17 +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;
}