source:
tags/1.0/test/stattest.cpp
Last change on this file was 5, checked in by willem, 11 years ago | |
---|---|
File size: 258 bytes |
Line | |
---|---|
1 | #include <iostream> |
2 | #include <sys/types.h> |
3 | #include <sys/stat.h> |
4 | #include <unistd.h> |
5 | |
6 | int main() |
7 | { |
8 | struct stat buf; |
9 | int rc = stat("aap",&buf); |
10 | std::cout << "rc: " << rc << std::endl; |
11 | std::cout << "mtime: " << buf.st_mtime << std::endl; |
12 | return 0; |
13 | } |
Note: See TracBrowser
for help on using the repository browser.