Skip to content

Instantly share code, notes, and snippets.

View jiyeqian's full-sized avatar

Jiye Qian jiyeqian

View GitHub Profile
@jiyeqian
jiyeqian / list.c
Last active December 15, 2015 06:59 — forked from Soft/list.c
list
#include <stdlib.h>
#include <stdbool.h>
#include "list.h"
Node *list_append(Node *list, void *data) {
if (list) list_last(&list);
Node *node = malloc(sizeof(Node));
if (node) {
node->data = data;
node->next = NULL;