EIF_add_numeric


Add a NUMERIC variable to a VAR file.

Synopsis


EIF_add_numeric  (lu, iarray, ibase, varname, value)

Input Parameters


int   lu,*iarray, *ibase,* num; char *varname; double value;

Output Parameters

none

Returns

Returns TRUE if there are no errors or otherwise FALSE.

Arguments

lu

Logic unit for the VAR file.
 

iarray

Buffer where to write the variables.
 

ibase

Displacement inside the buffer.
 

varname

Name of the variable.
 

value
 

Value of the variable.

Include Files

EIF_lib.h, EIF_std.h

Example


#include <string.h> #include <stdio.h> #include "EIF_std.h" #include "EIF_lib.h" ... int          lu, ibase, iarray[1024]; char       varName[32]; double value; ... strcpy( varName, “EDR_CURPEN”); value = 2; if( ! EIF_add_numeric ( lu, &iarray[0], &ibase, varName, value ) ) {                printf(“*** Error adding a NUMERIC variable to VAR file ***\n”); } ...