[Top] [Prev] [Next] [Bottom]

Fneeded (3FML)

Fneeded (3FML)

Name

Fneeded, Fneeded32-compute size needed for buffer

Synopsis

#include <stdio.h>  
#include "fml.h"

long
Fneeded(FLDOCC F, FLDLEN V)

#include "fml32.h"

long
Fneeded32(FLDOCC32 F, FLDLEN32 V)

Description

Fneeded() if used to determine the space that must be allocated for F fields and V bytes of value space.

Fneeded32 is used with 32-bit FML.

Return Values

This function returns \-1 on error and sets Ferror to indicate the error condition.

Errors

Under the following conditions, Fneeded() fails and sets Ferror to:

[FEINVAL]
"invalid argument to function"
One of the arguments to the function invoked was invalid, (for example, number of fields is less than 0, V is 0 or total size is greater than 65534).

See Also

Fintro(3), Falloc(3), Finit(3), Fielded(3), Fsizeof(3), Funused(3), Fused(3)



[Top] [Prev] [Next] [Bottom]