c_mkimg - Makes the TAE and host filenames of an image

SYNTAX

#include 
#include "las.h"

FUNCTION c_mkimg (inname, append, tname, hname, flag)

     char               *inname;
     char               *append;
     char               *tname;
     char               *hname;
     long               *flag;

PARAMETERS

inname (input, character, length (CMLEN))

Character string which contains the root image filename. It is assumed that the calling program retrieved this filename specification from the TAE parameter block prior to calling c_mkimg().

append (input, character, length (*))

Defines the character string to be appended to the root filename. If nothing is to be appended, pass a blank string for this argument.

tname (output, character length (CMLEN))

Character string which contains the TAE name of the image.

hname (output, character, length (CMLEN))

Character string which contains the hostname of the image.

flag (input, integer)

Flag indicating whether c_mkimg() should check if the image file exists.

     = 0:  Do not check
     = 1:  Check

DESCRIPTION

The c_mkimg() routine is used to make and return the TAE and host filenames of the image.

RETURN VALUE

c_mkimg() returns

     E_SUCC (0)  --> successful completion
     E_FAIL (-1) --> operation failed