Chapter Contents

Previous

Next
WRTERM

WRTERM



Simulate the WRTERM Assembly Language Macro

Portability: SAS/C extension


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


SYNOPSIS

#include <wrterm.h>

int WRTERM(char *buffer, short bufsiz);


DESCRIPTION

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


RETURN VALUE

WRTERM returns the value in register 15 when the TYPLIN or LINEWRT function returns.


ERRORS AND DIAGNOSTICS

The possible errors are the same as when the WRTERM or LINEWRT macro is used in an assembly language program.


PORTABILITY

WRTERM is not portable.


IMPLEMENTATION

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

#define WRTERM(bf,l) typlin(bf,l,WR_BLACK,WR_EDIT_NO)


SEE ALSO

See VM/ESA CMS Application Development Reference for Assembler.


EXAMPLE

void dispval(int n)
   {
   char *line[130]  ;
   int len, rc;

      /* equivalent to the example for the typlin macro */
   len = format(line,"The value of n is %d",n);
   (void) WRTERM(line,len);
   }


Chapter Contents

Previous

Next

Top of Page

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