Fread, Fread32 - read fielded buffer
#include <stdio.h> #include "fml.h" int Fread(FBFR *fbfr, FILE *iop) #include "fml32.h" int Fread32(FBFR32 *fbfr, FILE32 *iop)
Fielded buffers may be read from file streams using Fread(). fbfr is a pointer to a fielded buffer. iop is a pointer of type FILE to the input stream. (See stdio(3S) in a UNIX System reference manual for a discussion of streams). Fread() reads the fielded buffer from the stream into fbfr, clearing any data previously stored in the buffer, and recreates the buffer's index.
Fread32 is used with 32-bit FML.
This function returns -1 on error and sets Ferror to indicate the error condition.
Under the following conditions, Fread() fails and sets Ferror to:
This function is not supported using the TUXEDO System /WS DLL for OS/2 and Microsoft Windows.
Fintro(3fml),
stdio(3S) in UNIX System reference manuals,
Findex(3fml),
Fwrite(3fml)