Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <fcntl.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <unistd.h>
- #include <string.h>
- int main(){
- int fd2;
- int x,i;
- fd2=open("numeros",O_RDONLY);
- printf("los numeros pares son de la fifo son\n");
- for(i=0;i<100;i++){
- read(fd2,&x,sizeof(x));
- printf("%d\n",x);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement