From: Terry K. <kl...@kl...> - 2008-01-10 20:53:25
|
On Thu, 2008-01-10 at 22:42 +0200, Demetris Zavorotnichenko wrote: > So how would I di this so I could receive 18 characters ? > I use fpioctl in fpc to 'peek at' how many characters are available in the serial 'file' stream and loop until enough there - then do read... fpioctl(Handle, FIONREAD, @Result); this in C would be something like... int ioctl(int fildes, int request, ... /* arg */) (fd , I_NREAD, , ????) (Don't really do C sorry) Terry |