i made two functions, one to find and return smallest key in a red - black tree and the other one returns a pointer to a particular node with that node\'s key as input.These fun
In if (ptr->left != NULL) you fail to return a value, as the compiler says. You need to return a value.
if (ptr->left != NULL)