PURPOSE

Fdelall, Fdelall32 - delete all field occurrences from buffer

SYNOPSIS

#include <stdio.h>
#include "fml.h"
int
Fdelall(FBFR *fbfr, FLDID fieldid)
#include "fml32.h"
int
Fdelall32(FBFR32 *fbfr, FLDID32 fieldid)

DESCRIPTION

Fdelall() deletes all occurrences of the specified field in the buffer. fbfr is a pointer to a fielded buffer. fieldid is a field identifier. If no occurrences of the field are found, it is considered an error.

Fdelall32 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, Fdelall() 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().
 
[FNOTPRES]
"field not present"
A field is requested but the specified field was not found in the fielded buffer.
 
[FBADFLD]
"unknown field number or type"
A field identifier is specified which is not valid.

SEE ALSO

Fintro(3fml),
Fdel(3fml),
Fdelete(3fml)