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

Fcpy, Fcpy32(3fml)


Fcpy(), Fcpy32() - copy source to destination buffer


#include <stdio.h> 
#include "fml.h"
Fcpy(FBFR *dest, FBFR *src)
#include "fml32.h"
Fcpy32(FBFR32 *dest, FBFR32 *src)


Fcpy() is used to copy the contents of one fielded buffer to another fielded buffer. dest and src are pointers to the destination and source fielded buffers respectively. Fcpy() expects the destination to be a fielded buffer, and thus can check that it is large enough to accommodate the data from the source buffer.

For values of type FLD_PTR, Fcpy32() copies the buffer pointer. The application programmer must manage the reallocation and freeing of buffers when the associated pointer is copied.

Fcpy32() is used with 32-bit FML.

A thread in a multithreaded application may issue a call to Fcpy() or Fcpy32() 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, Fcpy() fails and sets Ferror to:


"fielded buffer not aligned"
Either the source buffer or the destination buffer does not begin on the proper boundary.


"buffer not fielded"
Either the source or the destination buffer is not a fielded buffer or has not been initialized by Finit().


"no space in fielded buffer"
The destination buffer is not large enough to hold the source buffer.

See Also

Introduction to FML Functions, Fmove, Fmove32(3fml)