Skip to content

Instantly share code, notes, and snippets.

View iwilllate's full-sized avatar

iwilllate

View GitHub Profile
@yinyanghu
yinyanghu / linus_ll.c
Created May 1, 2013 16:47
Link List with hack remove function in C by Linus Torvalds. He tells me what the pointer is.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct link_list
{
int key;
struct link_list *next;
};
@goakley
goakley / linus.c
Last active December 10, 2020 00:34
In response to: http://meta.slashdot.org/story/12/10/11/0030249/linus-torvalds-answers-your-questions An explanation of the two different types of singly-linked list removal explained by Linus Torvalds, using the variable names introduced here: http://stackoverflow.com/questions/12914917/
#include <stdio.h>
typedef struct ll {
int value;
struct ll *next;
} ll;
void print_list(ll *list_head)
{