blob: 12675ee97f51564b1187416d81f104e10fe4db4e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
.TH LIBNORMALFORM_EVALUATE 3 LIBNORMALFORM
.SH NAME
libnormalform_evaluate \- Determine value of a formula
.SH SYNOPSIS
.nf
#include <libnormalform.h>
int libnormalform_evaluate(LIBNORMALFORM_SENTENCE *\fIformula\fP);
.fi
.PP
Link with
.IR -lnormalform .
.SH DESCRIPTION
The
.BR libnormalform_evaluate ()
function determines the value of
.IR formula .
.PP
Before calling the
.BR libnormalform_evaluate ()
function, the application must configure application
defined parts of the formula. That is, any
.IR "struct libnormalform_variable" ,
.IR "struct libnormalform_function" ,
.IR "struct libnormalform_map" ,
and
.IR "struct libnormalform_transformer"
must be set configuared accord to the specifications
specified for the function it was used in.
.SH RETURN VALUE
Upon successful completion, the
.BR libnormalform_evaluate ()
function returns 1 if the
.I formula
is true for configured input, 0 if the
.I formula
is false for configured input;
otherwise, the function returns
.IR -1 .
.SH ERRORS
The
.BR libnormalform_evaluate ()
function fails if an application function fails.
The
.BR libnormalform_evaluate ()
function does not modify
.IR errno ,
but lets application functions modify
.IR errno .
.SH ATTRIBUTES
For an explanation of the terms used in this
section, see
.BR attributes (7)
and
.IR "info \(dq(libc)POSIX Safety Concepts\(dq" .
.TS
allbox;
lb lb lb
l l l.
Interface Attribute Value
T{
.BR libnormalform_evaluate ()
T} Thread safety MT-Safe race:\fIsentence\fP
T{
.BR libnormalform_evaluate ()
T} Async-signal safety AS-Unsafe heap
T{
.BR libnormalform_evaluate ()
T} Async-cancel safety AC-Safe mem, AC-Unsafe heap
.TE
.SH SEE ALSO
.BR libnormalform (7)
|