#include /* prototype */ int func(void *thePtr); int main(void) { /* assign a string to the pointer */ char *theStr = "abcd1234$@#"; /* call the function */ func(theStr); return 0; } /* the function parameter is a void pointer*/ int func(void *thePtr) { /* just print the string pointed by the pointer */ printf("%s\n", thePtr); return 0; }