I am using memcmp for comparing the char pointer to empty string as:
if((0 == memcmp("", pcNewBeginPtr, 1))){
// do some stuff
}
I am able to compare this, but while running through Valgrind, I get this error message:
Invalid read of size 1 at this line.