Previous: SDDS_PrintErrors
Up: Manual Pages
Next: SDDS_ReadTable
Previous Page: SDDS_PrintErrors
Next Page: SDDS_ReadTable
- name:
SDDS_PrintTypedValue
- description:
Prints a data value of a specified type using an optional printf format string.
- synopsis:
#include "SDDS.h"
long SDDS_PrintTypedValue(void *data, long index, long type, char *format, FILE *fp)
- arguments:
- data: The reference address of the data to be printed.
- index: The offset of the address of the item to be printed from the reference address, in units
of the size of the declared type.
- type: The type of the data, specified by one of the constants (defined in SDDS.h)
SDDS_DOUBLE, SDDS_FLOAT, SDDS_LONG, SDDS_SHORT, or SDDS_CHARACTER.
- format: A NULL-terminated character string giving a printf format specification for
printing the data. If NULL, a reasonable default is chosen.
- fp: The FILE stream to which to print the data.
- return value:
Returns 1 on success. On failure, returns 0 and records an error message.
- see also: