Sigh!

From the code, found is computed as the number of times a pattern is matched in input. By returning its value from main(), the calling environment (for example, a shell script, a batch...