strcpy(substring, &info->text[i], find_len);这行报错

`//下列函数的功能是查找一段文字。int findstr(char * to_find){ struct line * info; int i = 0, find_len, found = 0, position; char substring[MAX_LEN]; info = start; lnum = 0; //匹配到的行号 find_len = strlen(to_find); while (info && !found) //查询 { i = 0; //行间循环 while (!found && (i <= strlen(info->text) - find_len)) //行内查找循环 { strcpy(substring, &info->text[i], find_len); substring[find_len] = '\0'; if (strcmp(substring, to_find) == 0) { found = 1; lnum = info->num; } else ++i; } info = info->next; } if (found) //查找成功 position = i; else //查找不成功 position = NOT_FOUND; return(position);}//下列函数的功能是查找指定行,如果查找成功返回结点所在的行指针。struct line * find(int linenum){ struct line * info; info = start; while (info) { if (linenum != info->num) info = info->next; else break; } return (info);}

strcpy(substring, &info->text[i], find_len);
改为
strcpy(substring, &info->text[i]);