文件I/O-stat


#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
int main(void) {
struct stat st;
if (-1 == stat("./log.txt", &st)) {
perror("error:");
exit(EXIT_FAILURE);
}
printf("st_ino:%ld\n", st.st_ino);
return 0;
}

浙公网安备 33010602011771号