C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
link_list.h File Reference

Contains declations of link list types, node and link list structure. More...

#include "common.h"

Go to the source code of this file.

Data Structures

struct  llnode
 Link list node definition. More...
 
struct  linklist
 Link List main structure. More...
 

Typedefs

typedef struct llnode t_llnode
 Link list node definition. More...
 
typedef struct linklist t_linklist
 Link List main structure. More...
 

Enumerations

enum  e_lltype {
  eSINGLE_LINKLIST , eDOUBLE_LINKLIST , eSINGLE_CIRCULAR_LINKLIST , eDOUBLE_CIRCULAR_LINKLIST ,
  eXOR_LINKLIST
}
 Type of linklists. More...
 

Functions

t_gen create_link_list (char *name, e_lltype type, t_dparams *dprm)
 
Create an instance of link list More...
 

Detailed Description

Contains declations of link list types, node and link list structure.

Definition in file link_list.h.

Typedef Documentation

◆ t_linklist

typedef struct linklist t_linklist

Link List main structure.

◆ t_llnode

typedef struct llnode t_llnode

Link list node definition.

Enumeration Type Documentation

◆ e_lltype

enum e_lltype

Type of linklists.

Enumerator
eSINGLE_LINKLIST 

Singly Link list

eDOUBLE_LINKLIST 

Doubly Link list.

eSINGLE_CIRCULAR_LINKLIST 

Singly Circular Link list.

eDOUBLE_CIRCULAR_LINKLIST 

Doubly Circular Link list.

eXOR_LINKLIST 

Xor Link list.

Definition at line 10 of file link_list.h.

Function Documentation

◆ create_link_list()

t_gen create_link_list ( char *  name,
e_lltype  type,
t_dparams prm 
)


Create an instance of link list

Parameters
name- Name of link list instance
type- Type of link list to be created
prm- Data type specific parameters
Returns
- Pointer to instance of link list

Definition at line 69 of file link_list.c.