slip9
By: Anonymous5/19/202377 views Public Note
#include //unistd.h — standard symbolic constants and types
#include //fcntl.h - file control options
#include
#include
#include //data types
#include
int main(int argc, char **argv)
{
if(argc != 2)
return 1;
int file=0;
if((file=open(argv[1],O_RDONLY)) < -1)
return 1;
struct stat fileStat;
if(fstat(file,