![]() |
![]() |
|
|
Fwrite, Fwrite32(3fml)
Name
Fwrite(), Fwrite32() - write fielded buffer
Synopsis
#include <stdio.h>
#include "fml.h"
int
Fwrite(FBFR *fbfr, FILE *iop)
#include "fml32.h"
int
Fwrite32(FBFR32 *fbfr, FILE *iop)
Description
Fielded buffers may be written to streams by Fwrite(). (See stdio(3S) in a UNIX System reference manual for a discussion of streams). Fwrite() discards a buffer's index.
fbfr is a pointer to a fielded buffer. iop is a pointer of type FILE to the output stream.
For the FLD_PTR field type, only the pointer, not the data being pointed to, is written to the output stream. For the FLD_VIEW32 field type, only the FVIEWFLD structure, not the data in the VIEW32 buffer, is written to the output stream.
Fwrite32() is used with 32-bit FML.
A thread in a multithreaded application may issue a call to Fwrite() or Fwrite32() while running in any context state, including TPINVALIDCONTEXT.
Return Values
This function returns -1 on error and sets Ferror to indicate the error condition.
Errors
Under the following conditions, Fwrite() fails and sets Ferror to:
The buffer does not begin on the proper boundary.
The buffer is not a fielded buffer or has not been initialized by Finit().
The write system call failed. The external integer errno should have been set to indicate the error by the system call, and the external integer Uunixerr (values defined in Uunix.h) is set to the system call that returned the error.
Portability
This function is not supported using the BEA Tuxedo system Workstation DLL for OS/2 and Microsoft Windows.
See Also
Introduction to FML Functions, Findex, Findex32(3fml), Fread, Fread32(3fml)
stdio(3S) in a UNIX system reference manual
![]() |
![]() |
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|