[QUOTE=Shlainn;20118]but I use it with:
fgets(serialnmr,sizeof(serialnmr),stdin);
fgets(serialnmr,sizeof(serialnmr),stdin);
To copy to clipboard, switch view to plain text mode
It doesn't matter. You still need the newline to flush the stdin buffer of your application.
and another thing I see is that nothing is displayed using readFromStdout until the program (my.exe) has exited.
Maybe you are missing newlines here, too... In the output buffer this time. You can use fflush() instead of the newline to force the flush too.
Bookmarks