Fdel, Fdel32
-delete field occurrence from buffer
#include stdio.h>
#include "fml.h"
int
Fdel(FBFR *fbfr, FLDID fieldid, FLDOCC oc)
#include "fml32.h"
int
Fdel32(FBFR32 *fbfr, FLDID32 fieldid, FLDOCC32 oc)
Fdel()
deletes the specified field occurrence from the buffer. fbfr is a pointer to a fielded buffer. fieldid is a field identifier. oc is the occurrence number of the field.
Note that when multiple occurrences of a field exist in the fielded buffer and a field occurrence is deleted that is not the last occurrence, also higher occurrences in the buffer are shifted down by one. To maintain the same occurrence number for all occurrences, use Fchg
(3) to set the field occurrence value to a "null" value.
Fdel32
is used with 32-bit FML.
This function returns -1 on error and sets Ferror
to indicate the error condition.
Under the following conditions, Fdel
() fails and sets Ferror
to:
[FALIGNERR]
[FNOTFLD]
Finit
().
[FNOTPRES]
[FBADFLD]
Fintro
(3), Fadd
(3), Fchg
(3), Fdelall
(3), Fdelete
(3)