Answers for "c stat example"

0

c stat example

char *fd = "myfile.txt";
struct stat buf;          

stat(fd, &buf);
int size = buf.st_size;

printf("%d",size);
Posted by: Guest on November-06-2020

Browse Popular Code Answers by Language