download | new post | afis on April Mon 13th 12:08 AM - Never Expires
- #include<fcntl.h>
- #include<stdlib.h>
- #include<stdio.h>
- #include<unistd.h>
- #include<sys/types.h>
- #include<sys/stat.h>
- int main(int argc, char* argv[])
- {
- int nr, i, df;
- if (argc<2)
- {
- exit(2);
- }
- df=open(argv[1],O_RDONLY);
- if(df==-1)
- {
- exit(1);
- }
- for(i=1;i<=20;i++)
- {
- read(df,&nr, sizeof(int));
- }
- return 0;
- }
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.