NAME
lSet{Type}, lSetPos{Type} - set the field content of type
{Type}
SYNOPSIS
#include "cull.h"
int lSetInt(
lListElem *element,
int fieldname,
int value
);
int lSetUlong(
lListElem *element,
int fieldname,
lUlong value
);
int lSetString(
lListElem *element,
int fieldname,
lString value
);
int lSetList(
lListElem *element,
int fieldname,
lList* value
);
int lSetFloat(
lListElem *element,
int fieldname,
lFloat value
);
int lSetDouble(
lListElem *element,
int fieldname,
lDouble value
);
int lSetChar(
lListElem *element,
int fieldname,
lChar value
);
int lSetLong(
lListElem *element,
int fieldname,
lLong value
);
int lSetPosInt(
lListElem *element,
int position,
int value
);
int lSetPosUlong(
lListElem *element,
int position,
lUlong value
);
int lSetPosString(
lListElem *element,
int position,
lString value
);
int lSetPosList(
lListElem *element,
int position,
lList* value
);
int lSetPosFloat(
lListElem *element,
int position,
lFloat value
);
int lSetPosDouble(
lListElem *element,
int position,
lDouble value
);
int lSetPosChar(
lListElem *element,
int position,
lChar value
);
int lSetPosLong(
lListElem *element,
int position,
lLong value
);
DESCRIPTION
int lSet{Type}(element, fieldname, value)
set the content of the field specified by fieldname of
list element element. The types of the field of list
element element and the type of the delivered value
must be equal.
int lSetPos{Type}(element, position, value)
set the content of the field specified by position of
list element element. The types of the field of list
element element and the type of the delivered value
must be equal.
RETURN VALUES
On error -1 is returned, 0 otherwise.
ERRORS
The following possible values can occur for lerrno.
LEELEMNULL
The element pointer specifying the element is NULL.
LENEGPOS
The specified position for lSetPos{Type} is negative.
LEINCTYPE
The specified types of the function and the field ele-
ment are incompatible.
SEE ALSO
sge_intro(1), list_intro(3), lGetIn(3).
COPYRIGHT
See sge_intro(1) for a full statement of rights and permis-
sions.
Man(1) output converted with
man2html