4
<!-- Manpage converted by man2html 3.0.1 -->
6
lInit, lNm2Str (_lNm2Str), lStr2Nm (_lStr2Nm), lCountDescr,
7
lCopyDescr, lGetPosInDescr, lDumpDescr, lUndumpDescr, lWri-
10
generic list manipulation and information functions
15
void lInit( lNameSpace *namev );
17
char* lNm2Str( int nm );
19
char* _lNm2Str( lNameSpace *nsp, int nm );
21
int lStr2Nm( char *str );
23
int _lStr2Nm( lNameSpace *nsp, char *str );
25
int lCountDescr( lDescr *descriptor );
27
lDescr* lCopyDescr( lDescr *descriptor );
29
int lGetPosInDescr( lDescr *descriptor, int nm );
31
void lWriteDescr( lDescr *descriptor );
39
lDescr* lUndumpDescr( FILE *file );
43
initializes the name to string conversion. Names are
44
represented by unique numbers which are mapped to their
45
corresponding strings. The function argument is a
46
pointer to a <I>lNameSpace</I> array.
49
converts the field names (represented by numbers) to
50
the corresponding strings. If the NameSpace has been
51
initialized with lInit() the corresponding string is
52
returned, otherwise the string "Nameindex = n" is
53
returned, where n is replaced by the field number
54
representing nm. _<I>lNm2Str</I> converts the field names
55
(represented by numbers) to the corresponding strings.
56
A NameSpace is delivered explicitly. The corresponding
57
string is returned, otherwise the string "Nameindex =
58
n" is returned, where n is replaced by the field number
62
converts the string field names to the corresponding
63
field id's. If the <I>NameSpace</I> has been initialized with
64
lInit() the corresponding field id is returned, other-
65
wise <I>NoName</I> is returned. _<I>lStr2Nm</I> converts the string
66
field names to the corresponding field id's. A
67
NameSpace is delivered explicitly. The corresponding
68
field id is returned, if it can be found in the
69
NameSpace. Otherwise the function returns <I>NoName</I>.
72
count the number of fields specified in the descriptor.
73
The descriptor is delivered as function argument. The
74
number of fields is returned.
77
duplicate the specified descriptor. The descriptor is
78
delivered as function argument. A pointer to the
79
copied descriptor is returned, NULL otherwise.
82
get the position of the field named nm from the
83
descriptor. If the field named nm is not contained in
84
the descriptor -1 is returned.
87
dump the list descriptor in ASCII format to a file. The
88
first argument is a FILE pointer of the dump file, the
89
second argument is the descriptor that shall be dumped
90
and the third argument is the number of indentation
91
units for formatting purposes. This function is nor-
92
mally used only by <B><A HREF="../htmlman3/lDumpList.html">lDumpList(3)</A></B>.
95
undump the list descriptor from a dump file. A FILE
96
pointer to the dump file is delivered as function argu-
97
ment. If no error occurs a pointer to the list descrip-
98
tor is returned, otherwise NULL is returned. This
99
function is normally used only by <B><A HREF="../htmlman3/lUndumpList.html">lUndumpList(3)</A></B>.
102
writes a list descriptor to stdout. This function is
103
used for debugging only.
106
The functions return -1 or NULL in case of error, otherwise
107
0 or a valid pointer are returned.
110
The following errors can occur in the above listed func-
111
tions. The functions which are affected by a special error
112
are enumerated in parentheses.
115
This error occurs, if the name is out of namespace
116
ranges. (<I>lNm2Str</I>)
119
The descriptor argument is NULL. (<I>lCountDescr</I>, <I>lWri-</I>
120
<I>teDescr</I>, <I>lDumpDescr</I>, <I>lGetPosInDescr</I>)
123
The file pointer delivered is NULL. (<I>lDumpDescr</I>, <I>lUn-</I>
127
The specified name is not a field of the specified
128
descriptor. (<I>lGetPosInDescr</I>)
131
Reading a field value from a dump file failed. (<I>lUn-</I>
135
Reading a descriptor pair from a dump file failed.
136
(<I>lUndumpDescr</I>)
139
A syntax error occurred (missing opening or closing
140
brackets). (<I>lUndumpDescr</I>)
143
<B><A HREF="../htmlman1/sge_intro.html">sge_intro(1)</A></B>, <B><A HREF="../htmlman3/list_intro.html">list_intro(3)</A></B>.
146
See <B><A HREF="../htmlman1/sge_intro.html">sge_intro(1)</A></B> for a full statement of rights and permis-
164
Man(1) output converted with
165
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>