Skip to content

Instantly share code, notes, and snippets.

View kcal2845's full-sized avatar

Minseok Kim kcal2845

  • Seoul, Korea
View GitHub Profile
@kcal2845
kcal2845 / bf.c
Last active January 7, 2019 06:07 — forked from maxcountryman/bf.c
A simple brainfuck interpreter in C
#include <stdio.h>
#include <string.h>
void interpret(char input[]) {
// 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;