rtypalign()

Returns the position to align a variable at the proper boundary for its data type.

Syntax

mlong rtypalign(mlong pos, mint datatype)
  1. pos is the current position in the buffer.
  2. datatype is an integer code defining the data type.

Returns

Table 1. Return codes
Code Description
>0 The return value is the offset of the next proper boundary for a variable of type data type.

Usage

The datatype must be one of the data type constants defined in fglExt.h.