Skip to contentSkip to conversation

Check serial port buffer

DISCUSSION Iorga Alin 3 participants 3 messages Apr 26, 2002 – May 10, 2002

lore
Share & tools
lore

Iorga Alin

author
#0 lore raw

Can anyoune tell me how can I check the first byte of the serial port buffer without removing it from the buffer?

thank you

#1 lore raw

----- Original Message -----
From: "Iorga Alin" <[email protected]>
Newsgroups: ka.lists.linux.c.programming
Sent: Friday, April 26, 2002 2:17 PM
Subject: Check serial port buffer

Quoted 7 lines

Can anyoune tell me how can I check the first byte of the serial port buffer without removing it from the buffer?

thank you

-
To unsubscribe from this list: send the line "unsubscribe

linux-c-programming" in

Quoted 6 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--------------------------------------------------------------------------

-----

Quoted 1 line

Achtung: diese Newsgruppe ist eine unidirektional gegatete

Mailingliste.

Quoted 3 lines

Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> [email protected].
--------------------------------------------------------------------------

----

doesn't ungetch() work ?

#2 lore raw
Quoted 4 lines · Daniel
Quoted 2 lines

Can anyoune tell me how can I check the first byte of the serial port buffer without removing it from the buffer?

doesn't ungetch() work ?

ungetc() puts the character back in the stdio buffer. It can't put it back into the underlying OS stream.

Signature · 1 line
Glynn Clements <[email protected]>