A function to handle multiple datatypes

Nick has provided very convincing arguments for using templates. One more question still. The OP's requirements were:

I want a function that I can pass either a string of characters or an integer or an object ..

He probably expects to send the strings without terminating zeros. The code below won't probably work with the template version of sendAnything, will it? Can sendAnything be fixed to work with strings as well?

char *foo1 = "foo1";
char foo2[] = "foo2";

sendAnything(foo1);
sendAnything(foo2);