summaryrefslogtreecommitdiff
path: root/release/src/router/busybox/libbb/llist_add_to.c
blob: 61e53f0c170b1e50c6b9b54a1bc5ba19e9675dfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdlib.h>
#include <string.h>
#include "unarchive.h"
#include "libbb.h"

extern llist_t *llist_add_to(llist_t *old_head, char *new_item)
{
	llist_t *new_head;

	new_head = xmalloc(sizeof(llist_t));
	new_head->data = new_item;
	new_head->link = old_head;

	return(new_head);
}