Hi!
I have a memory block where are many strings, but I cant compare them with a constant string!
Example:
"if" statement is using sizeof() and its not using strlen()
Is there some functions or do I need to make a for loop (which is slow) for checking the data?
Code:char*pMem2="My Compare Text\0dsdfsdfsd"; char*Name2="My Compare Text"; if (pMem2 == Name2){ return 1; } return 0;


Reply With Quote