tree has only a root node

(*ptree)->leftptr = NULL;

(*ptree)->rightptr = NULL;