convert Ruby to C languge
Posted
by alaamh
on Stack Overflow
See other posts from Stack Overflow
or by alaamh
Published on 2010-04-26T09:40:56Z
Indexed on
2010/04/26
9:43 UTC
Read the original article
Hit count: 198
I have seen this sample written in Ruby code, how i can simulate it in C language?
Open3.popen3(command) do |stdin, stdout, stderr|
@stop_stdin = stdin
while !stdout.eof do
output = stdout.read(1024 * 100)
list_pipes.each do |out|
out.print output
end
end
end
© Stack Overflow or respective owner