You have to dereference your pointer: (notice the asterisk)

*ent = ent_create(filename,position,NULL);