Multiple pointer and function dereferencing in function context