Foccur, Foccur32-return count of field occurrences in buffer
#include <stdio.h>
#include "fml.h"
FLDOCC
Foccur(FBFR *fbfr, FLDID fieldid)
#include "fml32.h"
FLDOCC32 Foccur32(FBFR32 *fbfr, FLDID32 fieldid)
Foccur() is used to determine the number of occurrences of the field specified by fieldid in the buffer pointed to by fbfr.
Foccur32 is used with 32-bit FML.
On success, Foccur() returns the number of occurrences; if none are found, it returns 0.
This function returns \-1 on error and sets Ferror to indicate the error condition.
Under the following conditions, Foccur() fails and sets Ferror to:
FALIGNERR]
[FNOTFLD]
Finit().
[FBADFLD]
Fintro(3), Fnum(3), Fpres(3)