Simple C Expat Wrapper (SCEW)  1.1.7
Files | Functions
Accessors

Access lists' data and information. More...

Files

file  list.h
 SCEW general list implementation.
 

Functions

SCEW_API void * scew_list_data (scew_list *list)
 Returns the data pointer of the given list item. More...
 
SCEW_API unsigned int scew_list_size (scew_list *list)
 Returns the number of items in the given list. More...
 

Detailed Description

Access lists' data and information.

Function Documentation

SCEW_API void* scew_list_data ( scew_list list)

Returns the data pointer of the given list item.

Note that this routine does not know if the data pointed by the list item has been freed, so it might return a valid address without useful content.

Precondition
list != NULL
Returns
the data pointer for the given list.
SCEW_API unsigned int scew_list_size ( scew_list list)

Returns the number of items in the given list.

Returns
the number of items in the given list or 0 if list is NULL.