4 years
x
207 Views

#include
#include
#include
#include

void main(){
int fd=open(“reference.txt”, O_RDONLY, 0);
printf(“fd = %dn”, fd);
char* c=(char *)calloc(100, sizeof(char));
int sz= read(fd, c, 10);
printf(“fd = %d, sz = %dn”, fd, sz);
c[sz]=”;
printf(“Data = %s”, c);
}

New Confession

Related Confessions