redirection data to stdin
Hi,
I need to send data read from a comm port (com1 for example) to the keyboard output buffer (stdin).
To do this can i simply use the file I/O function, fread and fwrite, specify stdin as stream to use? Or what?
Can anyone help me?
Tanks.
|