定义字符指针函数strmcpy(s,t,m),将字符串t中从m个字符开始的全部字符复制到字符串s中去。

在这里给出函数被调用进行测试的例子。例如:
#include <stdio.h>
#define N 20
char *strmcpy(char *a,char *b,int n);
int main()
{
char t[N],s[N],c;
int m;
gets(t);
scanf("%d",&m);
c=strmcpy(s,t,m);
puts(c);
}
/
请在这里填写答案 */

img

你这是python么?搞个python的标签

char *strmcpy(char *s,char *t,int m)
{
    int i = 0;
    while(t[i] != 0)
    {
        if(i>=m)
            s[i-m] = t[i];
        i++;
    }
    return s;
}