Fcpy, Fcpy32
-copy source to destination buffer
#include <stdio.h>
#include "fml.h"
int
Fcpy(FBFR *dest, FBFR *src)
#include "fml32.h"
int
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.
Fcpy32
is used with 32-bit FML.
This function returns -1 on error and sets Ferror
to indicate the error condition.
Under the following conditions, Fcpy
() fails and sets Ferror
to:
[FALIGNERR]
[FNOTFLD]
Finit
().
[FNOSPACE]
Fintro
(3)Fmove
(3)