dl_size()

dl_size()#

dl_size() returns the number of items in a given doubly linked list.

Prototype

size_t dl_size(dl_list_t *dl);

Parameters

Key

Type

Description

dl

dl_list_t *

Pointer to the doubly linked list whose size is to be determined.


Return Value

Returns the number of items in the list. If dl is NULL, returns 0.

Notes

This function does not modify the list; it only retrieves the count of elements.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples