OutputShortItem

int OutputShortItem (FILE *stream, void *pointerToItem);

Purpose

This function is used for writing out lists of short integers.

To output a list of short integers, call OutputList and pass this function as the itemOutputFunction parameter.

Parameters

Input
Name Type Description
stream FILE * This parameter specifies which FILE* stream to output the item to. If stdout is specified, then the item is sent to the standard output device which is usually the Standard Input/Output window.
pointerToItem void * This parameter is interpreted as a pointer to a short integer. (type (short *)). This short is written to the specified stream.

Return Value

Name Type Description
numberOfCharacterWritten integer Returns the number of characters written, or a negative number if an error occurred.