请编写函数,求左子串。
函数原型
char* StrLeft(char *dst, const char *src, int len);
说明:函数取源串 src 的前 len 个字符,保存到目的串 dst 中,函数值为 dst。若 len 值不正确,则自动修正。
裁判程序
#include <stdio.h>
char* StrLeft(char *dst, const char *src, int len);
int main()
{
char a[1024], b[1024];
int n