Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

How to send an array through a pipe

//array[n];
//write 
write(fd[1], array, sizeof(int) * n); //n is how much number does it have to write
//read
read(fd[0], array, sizeof(int) * n); //n is how much number does it have to read

//You need to know the size of your array
 
PREVIOUS NEXT
Tagged: #How #send #array #pipe
ADD COMMENT
Topic
Name
2+9 =