#include #include "lib.h" void resetArray(int* count) { int length = '~' - 32 + 1; for (int i=0; i maxlen) maxlen = newmaxlen; // Move to the next sequence start++; end = start; } else { // Save the symbol count[ch]++; // Move to the next symbol end++; } } // Save max length int newmaxlen = end - start; if (newmaxlen > maxlen) maxlen = newmaxlen; // Move to the next sequence start++; end = start; } return maxlen; }