I can\'t figure out why I get this warning from clang by myself:
clang
function_prototype_const_modifier.c:13:8: warning: initializing \'char *\' with
You just need to change:
char *ptr1 = source;
to:
const char *ptr1 = source;