source: tags/1.0/test/stattest.cpp @ 5

Last change on this file since 5 was 5, checked in by willem, 9 years ago

willem

File size: 258 bytes
Line 
1#include <iostream>
2#include <sys/types.h>
3#include <sys/stat.h>
4#include <unistd.h>
5
6int 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.