dl_first()

dl_first()#

Returns the first item in the given double-linked list.

Prototype

void *dl_first(dl_list_t *dl);

Parameters

Key

Type

Description

dl

dl_list_t *

Pointer to the double-linked list.


Return Value

Returns a pointer to the first item in the list, or NULL if the list is empty.

Notes

Ensure that the list is properly initialized before calling dl_first().

Prototype

// Not applicable in JS

Prototype

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