Skip to content

Instantly share code, notes, and snippets.

View SebastianRedinger's full-sized avatar

Sebastian Redinger SebastianRedinger

View GitHub Profile
@RenatoUtsch
RenatoUtsch / stack.c
Created November 28, 2012 17:42
C Stack implementation
#include <stdlib.h>
#include <string.h>
#include "stack.h"
typedef struct StackNode {
StackItem item; /** The data of this node. **/
struct StackNode *next; /** The next node (the one below the top). **/
} StackNode;
struct Stack {
@boki1
boki1 / dynamic_queue.c
Last active April 25, 2022 18:47
Dynamic queue implementation - School HW
#include <stdio.h>
#include <stdlib.h>
struct queue_node
{
char x;
struct queue_node *next;
};
struct queue