Fextread, Fextread32
-build fielded buffer from printed format
#include <stdio.h>
#include "fml.h"
int
Fextread(FBFR *fbfr, FILE *iop)
#include "fml32.h"
int
Fextread32(FBFR32 *fbfr, FILE *iop)
Fextread
() may be used to construct a fielded buffer from its printed format (that is, from the output of Fprint
(3)). The parameters are a pointer to a fielded buffer, fbfr, and a pointer to a file stream, iop. The input file format is basically the same as the output format of Fprint(3), that is:
[flag] fldname or fldid tab> fldval (or fldname, if flag is \Q\Q='')
The optional flags and their meanings are as follows:
If no flag is specified, a new occurrence of the field named by fldname with value fldval is added to the fielded buffer. A trailing newline (-
) must be provided following each completed input buffer.
Fextread32
is used with 32-bit FML.
This function returns \-1 on error and sets Ferror
to indicate the error condition.
Under the following conditions, Fextread
() fails and sets Ferror
to:
[FALIGNERR]
[FNOTFLD]
Finit
().
[FNOSPACE]
[FBADFLD]
[FEUNIX]
Uunix.h
) is set to the system call that returned the error.
[FBADNAME]
[FSYNTAX]
fieldid or name tab> value
two control characters, field values greater than 1000 characters, or an invalid hex escape sequence.
[FNOTPRES]
[FMALLOC]
malloc
(3) failed.
[FEINVAL]
This function is not supported using the TUXEDO System /WS DLL for OS/2 and Microsoft Windows.
Fintro(3), Fprint(3)