Strange SUN behaviour.
Steven M. Schultz
sms at WLV.IMSD.CONTEL.COM
Tue Oct 24 05:40:13 AEST 1989
In article <ROWE.89Oct23093452 at rosie.cme.nist.gov> rowe at cme.nist.gov
(Walter Rowe) writes:
>Here is another possibility for you:
>
> ioctl (fd, FIONREAD, &nchar)
> int fd;
> int nchar;
>
>The value returned in `nchar' is the number of characters waiting to
>be read from file descriptor `fd'.
int nchar;
should be
long nchar;
sizeof (int) != sizeof (long)
Steven M. Schultz
sms at wlv.imsd.contel.com
More information about the Comp.unix.wizards
mailing list