rfmtint4()

Converts a 4-byte integer to a character string having a specified format.

Syntax

mint rfmtint4(int4 lvalue, char *fmt, char *outbuf);
  1. lvalue is the int4 integer to convert.
  2. fmt points to a string containing the formatting mask.
  3. outbuf is a pointer to a char buffer that receives the formatted string for the integer value.

Returns

Table 1. Return codes
Code Description
0 The conversion was successful.
<0 The conversion failed.
-1211 The program ran out of memory (memory-allocation error).
-1217 The format string is too large.

Usage

The fmt string contains the formatting mask for the string.