Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bu-cs!buengc!shaun From: shaun@buengc.BU.EDU (Shaun Keller) Newsgroups: comp.lang.fortran Subject: need help doing peek-char from f77 FORTRAN on UNIX box Message-ID: <222@buengc.BU.EDU> Date: Mon, 9-Nov-87 18:51:22 EST Article-I.D.: buengc.222 Posted: Mon Nov 9 18:51:22 1987 Date-Received: Wed, 11-Nov-87 20:12:18 EST Organization: Boston U. Engineering Dept. Lines: 7 Keywords: read Can someone fill me in on how to do single character input that doesn't get hung up waiting for the character. That is, it should be like getc but not wait if the character isn't already there (i.e., peeking). I'm running on an Encore Multimax if that is relevant (pretty standard UNIX as Berkeley sees it). I see that read(2) might be able to do it, but I don't know how to interface to it. Our FORTRAN library interfaces to getc but doesn't talk about read. -Shaun