How can i check if binary file's content is found in other binary file?
问题 i need to check if content in a binary file in in other binary file. i've tried to copy both files content into a array of chars with fread and check them with strstr, but strstr is always returning NULL even if the content supposed to be found in the other file. Any ideas? Thanks. 回答1: Since the strstr function won't work here for an arbitrary binary data (it is working only for strings with \0 . termination), I can see three approaches here: 1) Naive approach: iterate over one array of