#include "worgen.h"
FUNCTION c_setprt (vblock, term, file, lp, prtfile, filename)
struct PARBLK *vblock; long *term; long *file; long *lp; char *prtfile char *filename
TAE parameter block passed by reference. It is assumed that TAE has been initialized prior to calling c_setprt().
= 0: Terminal was not specified in print = 1: Terminal was specified in print
Integer flag set if the user has specified a filename as one of the printvalues.
= 0: A filename was not specified in print = 1: A filename was specified in print
Integer flag set if the user has specified LP as one of the printvalues.
= 0: Line printer was not specified in print = 1: Line printer was specified in print
A filename should be input (normally the program name). The input filename will be returned with "xxxxxx.pr" (xxxxxx is a time stamp) appended to the end of it. This filename will also be placed in a local variable of the TAE parameter block called prtfile.
The filename specified by the user in the print parameter.
The c_setprt() routine is used to set integer values from the print parameter. It is assumed the parameter vblock contains the TAE parameter print. It is also assumed the parameter vblock contains a local variable called prtfile. The filename returned to the local parameter
c_setprt() returns
RETURN VALUE
E_SUCC (0) --> successful completion
E_FAIL (-1) --> operation failed