Flen
, Flen32
-return len of field occurrence in buffer
#include <stdio.h>
#include "fml.h"
int
Flen(FBFR *fbfr, FLDID fieldid, FLDOCC oc)
#include "fml32.h"
long
Flen32(FBFR32 *fbfr, FLDID32 fieldid, FLDOCC32 oc)
Flen
() finds the value of the specified field occurrence in the buffer and returns its length. fbfr
is a pointer to a fielded buffer. fieldid
is a field identifier. oc
is the occurrence number of the field.
Flen32
is used with 32-bit FML.
On success, Flen
() returns the field length.
This function returns -1 on error and sets Ferror
to indicate the error condition.
Under the following conditions, Flen
() fails and sets Ferror
to:
[FALIGNERR]
[FNOTFLD]
Finit
().
[FNOTPRES]
[FBADFLD]
Fintro
(3), Fnum
(3), Fpres
(3)