Skip to content

Instantly share code, notes, and snippets.

View kibebr's full-sized avatar

Vitor Leal kibebr

  • Insurance Revolution
View GitHub Profile
// Loads dictionary into memory, returning true if successful else false
bool load(const char *dictionary)
{
// Initialize hash table
for (int i = 0; i < N; i++)
{
hashtable[i] = NULL;
}
// Open dictionary
@kibebr
kibebr / simplelinkedlist.c
Created October 31, 2019 23:13
Simple Linked-List in C
#include <stdio.h>
#include <stdlib.h>
int pushToEnd(int);
int pushToStart(int);
int setDefault(int*);
typedef struct node{
int num;
struct node *next;
@kibebr
kibebr / main.c
Created April 23, 2020 00:31
snake's main.c -- won't compile with Emscripten!
#include <stdio.h>
#include <stdbool.h>
#include "main.h"
#include "snake.h"
#include "apple.h"
void handle_events(SDL_Event* e);
void quit(void);
SDL_Window *window;