Searching for strings that are NULL terminated within a file where they are not NULL terminated
问题 I am writing a program that opens two files for reading: the first file contains 20 names which I store in an array of the form Names[0] = John\0 . The second file is a large text file that contains many occurences of each of the 20 names. I need my program to scan the entirity of the second file and each time it finds one of the names, a variable Count is incremented and so on the completion of the program, the total number of all the names appearing in the text is stored in Count . Here is