0 Members and 1 Guest are viewing this topic.
#include <sys/stat.h>#include <stdio.h> struct stat stat_info; if (lstat("filename", &stat_info) != -1) { printf("The file is %d bytes in size\n", stat_info.st_size); } else { perror("lstat"); }