我想将 char 数组的一部分复制到一个新数组中
void match(char* probe, char* pattern)
char* matchText;
//the char-array probe in this example is at least 12 characters long
//I'm only writing numbers in the strncopy-command to make it easier to understand
strncpy (matchText, probe + 5, 5 );
运行后,调试器会因错误而退出。我究竟做错了什么?