BEA Logo BEA Tuxedo Release 7.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy


   Tuxedo Doc Home   |   Reference   |   Topic List   |   Previous   |   Next   |   Contents

   BEA Tuxedo FML Function Reference

Fadds, Fadds32(3fml)


Fadds(), Fadds32() - convert value from type FLD_STRING and add to buffer


#include <stdio.h> 
#include "fml.h"
Fadds(FBFR *fbfr, FLDID fieldid, char *value)
#include "fml32.h"
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.

A thread in a multithreaded application may issue a call to Fadds() or Fadds32() while running in any context state, including TPINVALIDCONTEXT.

Return Values

This function returns -1 on error and sets Ferror to indicate the error condition.


Under the following conditions, Fadds() fails and sets Ferror to:


"fielded buffer not aligned"
The buffer does not begin on the proper boundary.


"buffer not fielded"
The buffer is not a fielded buffer or has not been initialized by Finit().


"no space in fielded buffer"
A field value is to be added in a fielded buffer but there is not enough space remaining in the buffer.


"invalid field type"
A field type is specified which is not valid.


"invalid argument to function"
One of the arguments to the function invoked was invalid (for example, specifying a NULL value parameter to Fadds())


"malloc failed"
Allocation of space dynamically using malloc() failed during conversion of carray to string.


"unknown field number or type"
A field identifier is specified which is not valid.

See Also

Introduction to FML Functions, CFchg, CFchg32(3fml), CFfind, CFfind32(3fml), CFget, CFget32(3fml), Falloc, Falloc32(3fml), Fchgs, Fchgs32(3fml), Ffinds, Ffinds32(3fml), Fgets, Fgets32(3fml), Fgetsa, Fgetsa32(3fml)