abfAddIntegers()

Appends a series of integer values to the currently open component.

Syntax

void abfAddIntegers(void *val, int len);

Inputs

val
A pointer to the values to be appended.
len
The number of values.

Example

int vals[256];
/* read in vals here */
abfOpenDatatype("Acceleration");
abfOpenRequest("Head");
abfOpenComponent("X");
abfAddIntegers(vals, 256);

Comment

The integers will be represented in the binary format specified by abfSetPrecision() or via abfDefaultPrecision().

Unlike AddInteger(), which will do precision conversions, the values pointed to must be in the correct binary format.

The results of using abfAddIntegers() with a component defined as floating point (via abfUseFloatingPoint (1)) are undefined.

The default is actually floating point, so it is necessary to use abfUseFloatingPoint(0) to specify in integer format.