strncpy (dest, src, len); (*cycle)--; if (*cycle == 0) return 1;
Matches[Num_matched++] = src; if (dest[0] == 0) strfcpy (dest, src, len); else { for (l = 0; src[l] && src[l] == dest[l]; l++); dest[l] = 0; }
static int candidate (char *dest, char *try, char *src, int len, int *cycle){  if (strstr (src, try) == src)  {    strncpy (dest, src, len);    (*cycle)--;    if (*cycle == 0)      return 1;  }  return 0;}