Function is waiting for a pointer but I want to return an integer in the function lookup (i can\'t modify the return type of the function), what can i do to solve this probl