httpc
Loading...
Searching...
No Matches
linkedlist.h File Reference
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  ll_node
 

Typedefs

typedef struct ll_node ll_node
 

Functions

void ll_push_back (ll_node *root, char *key, char *val)
 
ll_nodell_get_last (ll_node *root)
 
ll_nodell_create (char *key, char *value)
 
void ll_destroy (ll_node *root)
 
ll_nodell_clone (ll_node *root)
 
char * ll_to_header (ll_node *node)
 takes a node and converts it into a header line
 
char * ll_create_headers (ll_node *node, size_t size)
 Takes a linked list and turns the entire chain into a char* of HTTP headers.
 

Function Documentation

◆ ll_create_headers()

char * ll_create_headers ( ll_node * node,
size_t size )

Takes a linked list and turns the entire chain into a char* of HTTP headers.

Parameters
nodethe head of the headers
sizealways set this to zero

Unless you know what you are doing, set size to 0