in reply to Replace filename with pipe in program argument?
but i would suggest: change the C program to output to plain old STDOUT if you want to catch the output in a pipe ( for instance with a normal printf)