🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52037

DJGCC and kbhit?

#52037
From: Matthias Hammer
Date: Tue, 23 Feb 1993 19:48
34 lines
1728 bytes
Hi,
how can I get the number of characters waiting in stdin (or another
stream) to read out?

MS-C has the kbhit function to ask the system for some characters in
the keyboard buffer.

Does anybody has the solution for DJGCC and/or SYSV and/or BSD.

Thanks Matthias

------------------------------------------------------------------------------
Matthias Hammer
FG Flugmechanik und Regelungstechnik
THD - FB 16
Petersenstrasse 30
6100 Darmstadt
Germany

Tel.:  06151/166569         FAX: 06151/165434
email: hammer@kirk.fmr.maschinenbau.th-darmstadt.de
------------------------------------------------------------------------------
--
------------------------------------------------------------------------------
Matthias Hammer
FG Flugmechanik und Regelungstechnik
THD - FB 16
Petersenstrasse 30
6100 Darmstadt
Germany

Tel.:  06151/166569         FAX: 06151/165434
email: hammer@kirk.fmr.maschinenbau.th-darmstadt.de
------------------------------------------------------------------------------
Technical Details
Message-ID: <HAMMER.93Feb23194835@kirk.pc.chemie.th-darmstadt.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!infoserver.th-darmstadt.de!hammer

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,f5bf7a3f8062983,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-02-23 11:48:35 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.th-darmstadt.de!infoserver.th-darmstadt.de!hammer
From: hammer@kirk.pc.chemie.th-darmstadt.de (Matthias Hammer)
Subject: DJGCC and kbhit?
Sender: news@news.th-darmstadt.de (UseNet News Admin)
Message-ID: <HAMMER.93Feb23194835@kirk.pc.chemie.th-darmstadt.de>
Date: Tue, 23 Feb 1993 19:48:35 GMT
Distribution: gnu
Nntp-Posting-Host: kirk.fmr.maschinenbau.th-darmstadt.de
Organization: Technische Hochschule Darmstadt, D-6100 Darmstadt
Lines: 34