Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/02/01 19:56
Read: times


 
#13784 - RE: detecting -1
Then 0 ... 0xFF = data byte or -1 (0xFFFF) = buffer empty.<pre>
In fact, you could just say that any non-zero value in the high-byte indicates buffer empty.

Be careful with sign extension here:
the signed char value 0xff represents -1; if you assign this value to a signed int, you will still get -1, but as an int that'll be 0xffff

List of 6 messages in thread
TopicAuthorDate
detecting -1            01/01/70 00:00      
RE: detecting -1            01/01/70 00:00      
RE: detecting -1            01/01/70 00:00      
RE: detecting -1            01/01/70 00:00      
RE: detecting -1            01/01/70 00:00      
RE: detecting -1            01/01/70 00:00      

Back to Subject List