linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Check serial port buffer
@ 2002-04-26 12:20 Iorga Alin
  2002-05-10  9:07 ` Daniel
  0 siblings, 1 reply; 3+ messages in thread
From: Iorga Alin @ 2002-04-26 12:20 UTC (permalink / raw)
  To: linux-c-programming

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

thank you


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Check serial port buffer
  2002-04-26 12:20 Check serial port buffer Iorga Alin
@ 2002-05-10  9:07 ` Daniel
  2002-05-10 10:07   ` Glynn Clements
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel @ 2002-05-10  9:07 UTC (permalink / raw)
  To: linux-c-programming


----- Original Message -----
From: "Iorga Alin" <aiorga@xnet.ro>
Newsgroups: ka.lists.linux.c.programming
Sent: Friday, April 26, 2002 2:17 PM
Subject: Check serial port buffer


> 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
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
> --------------------------------------------------------------------------
-----
>    Achtung: diese Newsgruppe ist eine unidirektional gegatete
Mailingliste.
>      Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
>                    Fragen zum Gateway -> newsmaster@inka.de.
> --------------------------------------------------------------------------
----

doesn't ungetch() work ?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Check serial port buffer
  2002-05-10  9:07 ` Daniel
@ 2002-05-10 10:07   ` Glynn Clements
  0 siblings, 0 replies; 3+ messages in thread
From: Glynn Clements @ 2002-05-10 10:07 UTC (permalink / raw)
  To: Daniel; +Cc: linux-c-programming


Daniel wrote:

> > 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.

-- 
Glynn Clements <glynn.clements@virgin.net>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-10 10:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-26 12:20 Check serial port buffer Iorga Alin
2002-05-10  9:07 ` Daniel
2002-05-10 10:07   ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).