Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lane@elwood.enet.dec.com
Subject: Re: Single-character input using QIOW ???
Date: 16 Nov 90 19:06:03 GMT	[thread overview]
Message-ID: <1990Nov16.140705@elwood.enet.dec.com> (raw)
In-Reply-To: DRACK.90Nov15134302@diablo.titan.tsd.arlut.utexas.edu

#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);
  }


  reply	other threads:[~1990-11-16 19:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-11-15 19:43 Single-character input using QIOW ??? Dave Rackley
1990-11-16 19:06 ` lane [this message]
1990-11-16 23:21   ` Thanks! " Dave Rackley
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox