I don't understand exactly how the find.c function works. The problem set site says to give this input:
./generate 1000 50 | ./find 127
In the finder.c code, it takes the needle from: atoi(argv[1])
. Does C some how know to extract 127 from this code?
Then, it is not clear to me where the generate function is called in the code?