Previous: Manual Pages
Up: Manual Pages
Next: SDDS_ClearErrors
Previous Page: Manual Pages
Next Page: SDDS_ClearErrors
- name:
SDDS_CastValue
- description:
Casts a numeric value from one specified type (presumed to be the actual type) into another specified
type.
- synopsis:
#include "SDDS.h"
void *SDDS_CastValue(void *data, long index, long data_type, long desired_type, void *memory)
- arguments:
- data: The reference address of the data to be converted.
- index: The offset of the address of the item to be converted from the reference address, in units
of the size of the declared type.
- data_type: The declared type of the data. Must be one of the constants (defined in SDDS.h)
SDDS_DOUBLE, SDDS_FLOAT, SDDS_LONG, SDDS_SHORT, or SDDS_CHARACTER.
- desired_type: The desired type to cast the data to.
- memory: The address of the location in which to store the result. If NULL, space is allocated.
- return value:
The address of the location in which the result was stored. Returns NULL
on error and records an error message.
- see also: