[Serusers] C code portability question

Cesc cesc.santa at gmail.com
Fri Jul 22 15:09:59 CEST 2005


Hi,

This is totally non-SER related, but i thought that someone would know
... so many good developers here :)  You can reply off-list if you
prefer.

I need to implement a small program which i want to compile under
Linux (*nix in general) and windows. It needs to read from the
standard input, one char at a time, and I want to use select() so it
does not get stuck in the read() operation.
Is select working in windows? and read()? Actually, for windows
platforms i do a _getch() (just need to absorb the keypress).

Thks!

Cesc




More information about the sr-users mailing list