* Single-character input using QIOW ???
@ 1990-11-15 19:43 Dave Rackley
1990-11-16 19:06 ` lane
0 siblings, 1 reply; 3+ messages in thread
From: Dave Rackley @ 1990-11-15 19:43 UTC (permalink / raw)
I need to have single-character input via VAXC v3.0 on VMS v5.3. Guidance
would be helpful, C-source would be greatly appreciated!
I know this is an age-old problem, so there must be an age-old solution.
From what I can tell SYS$QIOW is the system service that needs to be used,
but I have only experienced stack dumps when executing the code.
Thanks in advance.
--
DISCLAIMER? I don't know anything 'bout any ol' disclaimer!
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| David Rackley | |
| Applied Research Laboratories | Remember, you can tuna fish, |
| The University of Texas | But you can't tuna piano! |
| Austin, TX. 78758 | |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Single-character input using QIOW ???
1990-11-15 19:43 Single-character input using QIOW ??? Dave Rackley
@ 1990-11-16 19:06 ` lane
1990-11-16 23:21 ` Thanks! " Dave Rackley
0 siblings, 1 reply; 3+ messages in thread
From: lane @ 1990-11-16 19:06 UTC (permalink / raw)
#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);
}
^ permalink raw reply [flat|nested] 3+ messages in thread* Thanks! Re: Single-character input using QIOW ???
1990-11-16 19:06 ` lane
@ 1990-11-16 23:21 ` Dave Rackley
0 siblings, 0 replies; 3+ messages in thread
From: Dave Rackley @ 1990-11-16 23:21 UTC (permalink / raw)
Thanks! The code is just what I was looking for. You made my day. :-)
--
DISCLAIMER? I don't know anything 'bout any ol' disclaimer!
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| David Rackley | |
| Applied Research Laboratories | Remember, you can tuna fish, |
| The University of Texas | But you can't tuna piano! |
| Austin, TX. 78758 | |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1990-11-16 23:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1990-11-15 19:43 Single-character input using QIOW ??? Dave Rackley
1990-11-16 19:06 ` lane
1990-11-16 23:21 ` Thanks! " Dave Rackley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox