Testing the correction
The program testcase should be retested to ensure the
corrected pointer causes the correct behavior.
testcase this is a test of the testcase program this is a test of the testcase programWith no character argument specified, testcase responds with one word per line. This is the correct behavior.
testcase -t this is a test of the testcase program this test the testcaseIn this example, with the -t as an argument, testcase has printed out, one word per line, only words with the letter t. This is the correct behavior. The assumption that the pointer was incrementing regardless of whether or not a match condition existed was correct. Changing it solved the problem within testcase.