From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bf76657c31e969a4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1990-11-16 11:06:03 PST Path: gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!decuac!bacchus.pa.dec.com!shlump.nac.dec.com!mountn.dec.com!elwood.enet.dec.com!lane From: lane@elwood.enet.dec.com Newsgroups: comp.sys.dec Subject: Re: Single-character input using QIOW ??? Message-ID: <1990Nov16.140705@elwood.enet.dec.com> Date: 16 Nov 90 19:06:03 GMT References: Sender: news@mountn.dec.com Reply-To: lane@elwood.enet.dec.com () Distribution: comp.sys.dec Posted: Fri Nov 16 20:06:03 1990 #include iodef #include stdio #include ssdef #include descrip main() { char buffer[80],*p1 = &buffer; int status_block[2],status,channel,p2 = 1; $DESCRIPTOR (terminal,"SYS$COMMAND"); status = sys$assign (&terminal,&channel,0,0); if (status != SS$_NORMAL) exit (status); printf("\nInput: "); status = sys$qiow (1,channel,IO$_READVBLK,&status_block,0,0,p1,p2,0,0,0,0); if (status != SS$_NORMAL) exit (status); buffer[1] = '\0'; printf ("\nChar is %s\n",p1); exit (1); }