DataMapAddScalar
Syntax | |||||||||||||
int DataMapAddScalar(struct DataMap *ptr, char *name,int type,void *data); | |||||||||||||
Header | |||||||||||||
general/dmap.h | |||||||||||||
Library | |||||||||||||
dmap | |||||||||||||
Description | |||||||||||||
The The data structure is pointed to by the argument ptr. The name of the scalar variable to add is given by the zero terminated string pointed to by the argument name. The scalar type is given by the argument type. Possible values are:
The argument data is a pointer to the location that stores the scalar value. | |||||||||||||
Returns | |||||||||||||
Returns zero on success. On error, (-1) is returned. | |||||||||||||
Errors | |||||||||||||
On error, (-1) is returned. | |||||||||||||
Example | |||||||||||||
|