Unsign char pointer comparison
Posted on 2003-11-10
I have a dilemma. I would like to compare images if it is the same. My idea of this is if the image is the same don’t copy it, else do.
Basically, theApp.m_pBitmap is unsigned char *m_pBitmap;
I want to copy that and compare it again.
This is what I did.
sign char *img = NULL;
strcpy(img, (char *) theApp.m_pBitmap)
if (strcmp(img,(char *)theApp.m_pBitmap)!=0)
Did compare it correctly? What did I do wrong?