prog.c: In function 'main':
prog.c:14:20: error: passing argument 1 of 'len' from incompatible pointer type [-Werror=incompatible-pointer-types]
printf("%d\n", len(pStr));
^
prog.c:3:5: note: expected 'const char **' but argument is of type 'char **'
int len(const char **str) {
^
cc1: all warnings being treated as errors