A function to handle multiple datatypes

If there any way that I can write a function that will accept multiple datatypes?

Easy: use a pointer to void.