rtypwidth()

Returns the minimum number of characters required to convert a specified data type to a character data type.

Syntax

mint rtypwidth(mint datatype, mint length)
  1. datatype is an integer code defining the data type.
  2. length is the number of bytes in the data file for the specified data type.

Returns

Table 1. Return codes
Code Description
0 The sqltype is not a valid SQL data type.
>0 Minimum number of characters that the sqltype data type requires.

Usage

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