Sending floating point values between processes with pipes in C

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2012-06-11T22:36:58Z Indexed on 2012/06/11 22:40 UTC
Read the original article Hit count: 139

Filed under:
|
|

Is there a standard way of sending floating point values from a child process to a parent process in C.

I have a some calculations where I want to fork a process, then have the child do some busy work, the parent do something else, and then the child send its values (which are doubles) back to the parent (presumably through a pipe). Clearly the parent could parse the stream, but I'm just wondering if there's a cleaner way?

© Stack Overflow or respective owner

Related posts about c

    Related posts about ipc