Ffinds, Ffinds32 - return ptr to string representation
#include <stdio.h> #include "fml.h" char * Ffinds(FBFR *fbfr, FLDID fieldid, FLDOCC oc) #include "fml32.h" char * Ffinds32(FBFR32 *fbfr, FLDID32 fieldid, FLDOCC32 oc)
Ffinds() is provided to handle the case of conversion to a user type of FLD_STRING. fbfr is a pointer to a fielded buffer. fieldid is a field identifier. oc is the occurrence number of the field. The specified field occurrence is found and converted from its type in the buffer to a null-terminated string. Basically, this macro calls its conversion function counterpart, CFfind(3c), providing a utype of FLD_STRING, and a ulen of 0. The duration of the validity of the pointer returned by Ffinds() is the same as that described for CFfind(3c).
Ffinds32 is used with 32-bit FML.
This function returns NULL on error and sets Ferror to indicate the error condition.
Under the following conditions, Ffinds() fails and sets Ferror to: