Update core.c

Filled in the basic templates of some of the locating functions