incvfmtasc()

Converts a character string having the specified format to an interval value.

Syntax

mint incvfmtasc(char *input, char *fmt, intrvl_t *intvl);
  1. input is a pointer to the string to convert.
  2. fmt points to the formatting string.
  3. intvl is a pointer to the initialized interval variable.

Returns

Table 1. Return codes
Code Description
0 The conversion was successful.
<0 The conversion failed.

Usage

The fmt parameter defines the formatting mask. It must be either in year to month, or in day to fraction ranges.