请编写函数,在目的串中插入源串。
函数原型
// 插入子串
char* StrInsert(char *dst, int index, const char *src);
说明:dst 为指示目的串起始地址的指针,index 为插入位置(下标),src 为指示源串起始地址的指针。函数在目的串 dst 下标 index 处插入源串 src,函数值为 dst。要求:函数能容错运行。若 index 不正确,则不插入子串。裁判程序
#include <stdio.h>
// 插入子串
char* StrInsert(char *dst, int index, const char *src