ok i am making a byte routine taht searches for a particular byte in a string of bytes. All the addresses of the found bytes are stored in an array. But its not working and i cant figure out why. Please tell me what i have done wrong:
when this runs the windows program just hangs and stops responding as if the while loop wont stop loopingCode:char *cptr = strchr(bytebuffy, searchnum); while(cptr != NULL) { int a = cptr - bytebuffy; Addresses1[g_FoundCount + 1] = readbase + a; g_FoundCount++; cptr = strchr(bytebuffy + a, searchnum); }