Skip to content

Instantly share code, notes, and snippets.

@CatOnMars
Last active August 29, 2015 14:09
void maker(char *name, Array <Character *> *people){
auto character =new Character();
character->name =copy_string(name);
people.add(character);
}
void set_up_the_people(){
Array<Character*> people;
maker("Mike",&people);
maker("Leon",&people);
maker("Josephine",&people);
//...
}
//Now the rest of the program can use 'maker'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment