Skip to content

Instantly share code, notes, and snippets.

View GeoVa19's full-sized avatar

George Vasios GeoVa19

  • Athens, Greece
View GitHub Profile
@maxcountryman
maxcountryman / bf.c
Created January 29, 2012 17:20
A simple brainfuck interpreter in C
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// initialize the tape with 30,000 zeroes
unsigned char tape[30000] = {0};
// set the pointer to point at the left-most cell of the tape
unsigned char* ptr = tape;