Chapter Contents

Previous

Next
RDTERM

RDTERM



Simulate the RDTERM Assembler Language Macro

Portability: SAS/C extension


SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS AND DIAGNOSTICS
PORTABILITY
IMPLEMENTATION
SEE ALSO
EXAMPLE


SYNOPSIS

#include <wrterm.h>

int RDTERM(char *inbuf, short inbufsz, int *inlen);


DESCRIPTION

RDTERM simulates the RDTERM assembler language macro. The RDTERM macro invokes the waitrd macro to produce a parameter list that is equivalent to using the RDTERM assembly language macro with all parameters allowed to default. If the symbol BIMODAL is defined, RDTERM generates an equivalent to the CMS LINERD macro and, therefore, can be used in 31-bit addressing mode.


RETURN VALUE

RDTERM returns the value in register 15 when the WAITRD or LINERD function returns.


ERRORS AND DIAGNOSTICS

The possible errors are the same as when the RDTERM or LINERD macro is used in an assembler language program.


PORTABILITY

RDTERM is not portable.


IMPLEMENTATION

The definition of RDTERM if BIMODAL is not defined is as follows:

#define RDTERM(b,l,rl) waitrd(b,l,STACK_MIXED,PROMPT_NO,0,0,rl)


SEE ALSO

See VM/SP CMS Command Reference.


EXAMPLE

char *line[130]
int len, rc;
   /* Read up to 130 characters with no prompt and no editing. */
rc = RDTERM(line,sizeof(line),&len);


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.