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.
Fadds() fails and sets Ferror to:
[FALIGNERR]
[FNOTFLD]
[FNOSPACE]
[FTYPERR]
[FEINVAL]
NULL value parameter to Fadds)
[FMALLOC]
malloc failed" malloc(3) failed during conversion of carray to string.
[FBADFLD]
Fintro(3)Fchgs(3)Fgets(3)Fgetsa(3)Ffinds(3)CFchg(3)CFget(3)CFget(3)CFfind(3)