BEA Logo BEA Tuxedo Release 7.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy


   Tuxedo Doc Home   |   Reference   |   Topic List   |   Previous   |   Next   |   Contents

   BEA Tuxedo FML Function Reference

Fnum, Fnum32(3fml)


Fnum(), Fnum32() - return count of all occurrences in buffer


#include <stdio.h> 
#include "fml.h"

Fnum(FBFR *fbfr)

#include "fml32.h"

Fnum32(FBFR32 *fbfr)


Fnum() returns the number of fields contained in the specified buffer. fbfr is a pointer to a fielded buffer. The FLD_FML32 and FLD_VIEW32 fields are each counted as a single field, regardless of the number of fields they contain.

Fnum32() is used with 32-bit FML.

A thread in a multithreaded application may issue a call to Fnum() or Fnum32() while running in any context state, including TPINVALIDCONTEXT.

Return Values

This function returns -1 on error and sets Ferror to indicate the error condition.


Under the following conditions, Fnum() fails and sets Ferror to:


"fielded buffer not aligned"
The buffer does not begin on the proper boundary.


"buffer not fielded"
The buffer is not a fielded buffer or has not been initialized by Finit().

See Also

Introduction to FML Functions, Foccur, Foccur32(3fml), Fpres, Fpres32(3fml)