c_getcnt - Retrieves the number of logical images specified

SYNTAX

#include "las.h"

FUNCTION c_getcnt (block, param, count)

     struct PARBLK      *block;
     char               *param;
     long               *count;

block (input, PARBLK)

TAE parameter block passed by reference. It is assumed that TAE has been initialized prior to calling c_getcnt().

param (input, character, length (*))

Defines the parameter name in the proc which contains the input image(s) specification. In most cases the value of this parameter is IN.

count (output, long)

Returns the number of logical images specified by the input parameter array specified by param.

DESCRIPTION

The c_getcnt() routine is used to retrieve the number of logical images specified in the input image specification. It is used when the number of logical input images that can be specified by the user is not known.

RETURN VALUE

c_getcnt() returns

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