httpc
Loading...
Searching...
No Matches
linkedlist.h
Go to the documentation of this file.
1
4
5#ifndef HTTPLIB_LL
6#define HTTPLIB_LL
7
8#include <stddef.h>
9typedef struct ll_node {
10 char* key;
11 char* value;
12 struct ll_node* next;
13} ll_node;
14
15void ll_push_back(ll_node* root, char* key, char* val);
16ll_node* ll_get_last(ll_node* root);
17ll_node* ll_create(char* key, char* value);
18void ll_destroy(ll_node* root);
19ll_node* ll_clone(ll_node* root);
29char* ll_create_headers(ll_node* node, size_t size);
30
31#endif
char * ll_to_header(ll_node *node)
takes a node and converts it into a header line
Definition linkedlist.c:82
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.
Definition linkedlist.c:96
Definition linkedlist.h:9
Definition tree.h:36