Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crawl/crawl
/ file_modtime
Function
file_modtime
crawl-ref/source/files.cc:327–334 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
325
}
326
327
time_t file_modtime(const string &file)
328
{
329
struct stat filestat;
330
if (stat(file.c_str(), &filestat))
331
return 0;
332
333
return filestat.st_mtime;
334
}
335
336
time_t file_modtime(FILE *f)
337
{
Callers
4
_load_map_cache
Function · 0.85
_parse_maps
Function · 0.85
_needs_update
Method · 0.85
_regenerate_db
Method · 0.85
Calls
1
stat
Class · 0.70
Tested by
no test coverage detected