formZ SDK | 5.0 API Reference | System | Data Type

fz_type_get_ushort

Description

This function performs the following data type conversions:
Variant Type Conversion
fzrt_boolean TRUE -> 1; FALSE -> 0.
char value clamped to range of 0 to 127.
unsigned char value copied, no data lost.
short bits copied, value < 0 wrap to range of 32768 to 65535.
fzrt_int value clamped to range of 0 to 65535.
fzrt_unsigned_int value clamped to range of 0 to 65535.
float value converted to integer then clamped to range of 0 to 65535.
double value converted to integer then clamped to range of 0 to 65535.

Plugin Prototype

fzrt_error_td fz_type_get_ushort(

fz_type_ptr

type,

unsigned short *

usval )

Parameters

type [Input]

A pointer to a variant

usval [Result]

A pointer to a value to be filled. Must be allocated by the caller.

Availability

5.0.0.0

See Also

, fz_type_get_ushort_ptr

Function Set

fz_type_fset


Defined in

fz_type_api.h