Skip to content

Instantly share code, notes, and snippets.

View moazin's full-sized avatar
💭
Playing around with stuff

Moazin K. moazin

💭
Playing around with stuff
View GitHub Profile
@moazin
moazin / myint.c
Created August 9, 2018 21:14
Resizable Int Array imiplementation along with methods like map and filter.
#include "myint.h"
struct myint* createEmpty()
{
struct myint* newArray = (struct myint*) malloc(sizeof(struct myint));
newArray->fullSize = 10;
newArray->currentSize = 0;
newArray->arr = (int*) malloc(10*sizeof(int));
return newArray;