Messenger library

Update to my previous post for checkSubString.

uint8_t Messenger::checkSubString(char *subString, char *string, uint8_t length) {
      if (next()) {
            //if ( strcasestr(subString,current) == 0 ) {
            if ( strstr(current, subString) != NULL ) {
                  // return remaining chars after subString
                  int nChars = strlen(current) - strlen(subString);
                  strncpy(string, current + strlen(subString), nChars);
                  string[nChars] = '\0';
                  if ( strlen(string) > length ) return 0;
                  dumped = 1;
                  return 1;
            } else {
                  return 0;
            }
      } 
}

Cheers,

Eric