tamedog
int tamedog(struct monst *, struct obj *);
if (tamedog(mon, obj))
(void) tamedog(mtmp, (struct obj *) 0);