PURPOSE

Fnum, Fnum32 - return count of all occurrences in buffer

SYNOPSIS

#include <stdio.h>
#include "fml.h"
FLDOCC
Fnum(FBFR *fbfr)
#include "fml32.h"
FLDOCC32
Fnum32(FBFR *fbfr)

DESCRIPTION

Fnum() returns the number of fields contained in the specified buffer. fbfr is a pointer to a fielded buffer.

Fnum32 is used with 32-bit FML.

RETURN VALUES

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

ERRORS

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

[FALIGNERR]
"fielded buffer not aligned"
The buffer does not begin on the proper boundary.
 
[FNOTFLD]
"buffer not fielded"
The buffer is not a fielded buffer or has not been initialized by Finit().

SEE ALSO

Fintro(3fml),
Foccur(3fml),
Fpres(3fml)