Renamed new PR function

RENAME: GetLastWriteTime() to GetFileModTime()
This commit is contained in:
raysan5
2018-10-13 15:59:17 +02:00
parent fc4e9e7a37
commit c7b601b624
2 changed files with 8 additions and 5 deletions

View File

@ -1682,15 +1682,18 @@ void ClearDroppedFiles(void)
#endif
}
// Get the last write time of a file
long GetLastWriteTime(const char *fileName)
// Get file modification time (last write time)
RLAPI long GetFileModTime(const char *fileName)
{
struct stat result = {0};
struct stat result = { 0 };
if (stat(fileName, &result) == 0)
{
time_t mod = result.st_mtime;
return mod;
return (long)mod;
}
return 0;
}