EIF_add_string


Add a STRING variable to a VAR file.

Synopsis


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

Input Parameters


int lu,*iarray, *ibase,* num; char *varname,  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
 

The null-terminated value of the string .

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], value[256]; ... strcpy( varName, “EDR_CURFONT”); strcpy( value, “STDFONT”); if( ! EIF_add_string ( lu, &iarray[0], &ibase, varName, value ) ) {                printf(“*** Error adding a STRING variable to VAR file ***\n”); } ...

Related Routines

EIF_open_var, EIF_close_read_var , EIF_close_write_var, VAR files sample