wizapp-stdlib/codegen/dbl_list/snippets/list_get
Abdelrahman Said 3c32b247c0 Upgrade codegen
2025-04-17 09:03:30 +01:00

14 lines
241 B
Plaintext

if (index >= list->node_count) {{
return NULL;
}}
{Ttitle}Node *output = NULL;
{Ttitle}Node *current = list->first;
for (u64 i = 1; i <= index; ++i) {{
current = current->next;
}}
output = current;
return output;