Collab_RPG/src/memory.c

12 lines
234 B
C

#include "memory.h"
bool is_in(short int *array, short int array_length, short int item) {
short int i;
for(i=0;i<array_length;i++){
if(array[i] == item){
return true;
}
}
return false;
}