Foccur(), Foccur32() - return count of field occurrences in buffer
Foccur(FBFR *fbfr, FLDID fieldid)
FLDOCC32 Foccur32(FBFR32 *fbfr, FLDID32 fieldid)
Foccur() is used to determine the number of occurrences of the field specified by fieldid in the buffer referenced by fbfr. Occurrences of a field within an embedded FML32 buffer are not counted, as in the FLD_FML32 field type.
Foccur32() is used with 32-bit FML.
A thread in a multithreaded application may issue a call to Foccur() or Foccur32() while running in any context state, including TPINVALIDCONTEXT.
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:
The buffer does not begin on the proper boundary.
The buffer is not a fielded buffer or has not been initialized by Finit().
A field identifier is specified which is not valid.
Introduction to FML Functions, Fnum, Fnum32(3fml), Fpres, Fpres32(3fml)
Copyright © 2000 BEA Systems, Inc. All rights reserved.