Skip to content

dll_findid

Taras Maliukh edited this page Apr 11, 2020 · 1 revision

Synopsis:

dll_obj_t *dll_findid(const dll_t *restrict dll, size_t index);
dll_obj_t *dll_findidr(const dll_t *restrict dll, size_t index);

Description:

  • dll_findid: Find object by index from the start
  • dll_findidr: Find object by index from the end indexing starts from 1

Return value:

Pointer to desired object otherwise NULL if:

  • dll is NULL
  • if DLL_BIT_EIGN is no specified:
    • list dll hasn't any objects
    • object with index doesn't exist in dll list
Clone this wiki locally