
Here is a summary of the queue access functions:
#include "vtl_rou.h"
/* G e t next "raw" char from secondary input queue.h.
Returns NO_CHAR if queue is empty.
*
1
extern int vtl_getchar_raw(void);
/* G e t next "stripped" char from secondary input queue.
The upper 8 bits have been masked off.
Returns NO_CHAR i f queue is empty.
*
1
extern int vtl_getchar(void);
/* R e t u r n s a character "ch" to the secondary input queue; the state of the upper 8
status bits is maintained.
Only a single character may be pushed back into the queue.
*1
extern int vtl_ungetc(int ch);
/* R e t u r n s a count of the number o f characters available i n the secondary input
queue.
*
1
extern long in_stat(void)
/* R e t u r n s non-zero (TRUE) i f an EOI was asserted.
extern int eof(void)
4.6.4 Sample Application Parser
#include "vtl_rou.h"
void myParser(void)
int c;
1*
Echo characters received in the secondary queue to the output queue;
maintain EOI status on last char.
while ((c = getcharO) != NO_CHAR)
vtl_putchar(c, eof() 7 1 : 0);
4-20
Summary of Contents for 7064
Page 2: ...Racal Instruments...
Page 6: ...I 1 1 1 1 1...
Page 21: ...I 1 I I I I I I I I I 1 1 I I I I I I...
Page 29: ...I I I I I I I I I I I I I I I I I I I...
Page 57: ...1 I I I I I I I I I I I I I I I I I I...
Page 77: ...1...
Page 111: ...0 00 0 00 tI I 4 0 0 I7 r i 6 4 7 4 7 0 T 6 0 0 7 28...
Page 112: ......
Page 113: ...7 30 I I I 1 I I I I I I I I I I I I I I I...
Page 115: ...7 32...
Page 148: ......
Page 164: ...I I I I I I I I I I 1 I I I I I I I I...
Page 176: ...extern char error_msg_lookup unsigned errdes endif ERROR_INCLUDE C 8...