![]() |
![]() |
|
|
Fvals, Fvals32(3fml)
Name
Fvals(), Fvals32() - return string value of field occurrence
Synopsis
#include <stdio.h>
#include "fml.h"
char *
Fvals(FBFR *fbfr, FLDID fieldid, FLDOCC oc)
#include "fml32.h"
char *
Fvals32(FBFR32 *fbfr, FLDID32 fieldid, FLDOCC32 oc)
Description
Fvals() works like Ffind() for string values but guarantees that a value is returned. fbfr is a pointer to a fielded buffer. fieldid is a field identifier. oc is the occurrence number of the field.
If the specified field occurrence is not found, then the NULL string is returned. This function is useful for passing the value of a field to another function without checking the return value. This function is valid only for fields of type FLD_STRING; the NULL string is automatically returned for other field types (that is, no conversion is done).
Fvals32() is used with 32-bit FML.
A thread in a multithreaded application may issue a call to Fvals() or Fvals32() while running in any context state, including TPINVALIDCONTEXT.
Return Values
This function returns the NULL string on error and sets Ferror to indicate the error condition.
Errors
Under the following conditions, Fvals() 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().
A field identifier is specified which is not valid.
Bad fieldid or the field type is not FLD_STRING.
See Also
Introduction to FML Functions, CFfind, CFfind32(3fml), Ffind, Ffind32(3fml), Fvall, Fvall32(3fml)
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|