Fadds, Fadds32 - convert value from type FLD_STRING and add to buffer
#include <stdio.h> #include "fml.h" int Fadds(FBFR *fbfr, FLDID fieldid, char *value) #include "fml32.h" int Fadds32(FBFR32 *fbfr, FLDID32 fieldid, char *value)
Fadds() has been provided to handle the case of conversion from a user type of FLD_STRING to the field type of fieldid and add it to the fielded buffer. fbfr is a pointer to a fielded buffer. fieldid is a field identifier. value is a pointer to the value to be added.
This function calls CFadd providing a type of FLD_STRING, and a len of 0.
Fadds32 is used with 32-bit FML.
This function returns -1 on error and sets Ferror to indicate the error condition.
Under the following conditions, Fadds() fails and sets Ferror to:
CFchg(3fml),
CFfind(3fml),
CFget(3fml),
Fintro(3fml),
Fchgs(3fml),
Ffinds(3fml),
Fgets(3fml),
Fgetsa(3fml)