Add a POINT variable to a VAR file.
Synopsis
EIF_add_varpoint (lu, iarray, ibase, varname, point)
Input Parameters
int lu,*iarray, *ibase; char *varname; double point;
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 pt[3]; ... strcpy( varName, “EDR_LASTPOS”); pt[0] = 100; pt[1] = 50; pt[2] = 0; if( ! EIF_add_varpoint ( lu, &iarray[0], &ibase, varName, pt ) ) { printf(“*** Error adding a POINT variable to VAR file ***\n”); } ...
Related Routines
EIF_open_var,
EIF_close_read_var
,
EIF_close_write_var, VAR
files sample