sprintf(tmp, "%.*s", n, str + i); //从str + i 开始复制 n 个字符到 tmp
点赞

相关推荐

牛客网
牛客企业服务