5 Struct LIST_NODE
gullradriel edited this page 2026-10-09 00:55:18 +02:00

LIST_NODE

Module: LISTS: generic type list

Structure of a generic list node.

#include "n_list.h"

Public Attributes

Name
void * ptr
void pointer to store
struct LIST_NODE * prev
pointer to the previous node
struct LIST_NODE * next
pointer to the next node
void(*)(void *ptr) destroy_func
pointer to destructor function if any, else NULL

Public Attributes Documentation

variable ptr

void * ptr;

void pointer to store

variable prev

struct LIST_NODE * prev;

pointer to the previous node

variable next

struct LIST_NODE * next;

pointer to the next node

variable destroy_func

void(*)(void *ptr) destroy_func;

pointer to destructor function if any, else NULL