c_sysset - Sets the system string from the system numerical code or sets the system numerical code from the system string

SYNTAX

#include "las.h"
#include "sysdef.h"

FUNCTION c_sysset (csys,nsys,sysflg)

     char               *csys;
     long               *nsys;
     long               *sysflg;

PARAMETERS

csys (input/output, character, length (*))

On input csys contains the system character string used to set the system numerical code nsys. On output csys is set to the system character string defined by the system numerical code nsys

nsys (input/output, integer)

On input nsys is the system numerical code used to set the system character string csys. On output nsys is set to the system numerical code defined by the system character string csys.

sysflg (input, integer)

System conversion flag. Valid values are:

     = SETN (0):  Convert the input system character string to the system
                  numerical code.
     = SETS (1):  Convert the input system numerical code to the system
                  character string.

DESCRIPTION

The c_sysset() routine is used to convert the system character string to a system numerical order or to convert the system numerical code to a system character string. The direction of the conversion is determined by the variable sysflg. The valid systems are defined in the include file sysdef.h.

RETURN VALUE

c_sysset() returns

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