unsigned char *buffer =NULL;
char findstring = "cplusplus"
buffer = function_to_ADD(starting_address, size)
/* in this buffer size 1500. all the data are UNICODE.
for(uint32_t i=0;i<size;i++)
{
if(0 == memcmp((char*)buffer,findstring,strlen(findstring )))
/*after some condition */
}
in this part buffer have unicode string. findstring is ASCII .
How to i convert ascii to uncode and find findstring in buffer.i do not know how to check?
can anyone help me?
Regards,
Kuluoz
Last edited on