zoukankan
html css js c++ java
strncpy实现
#include<stdio.h>
char
*my_strncpy(
char
*dest,
char
*src,
int
n) {
int
i;
for
(i=
0
;i<n && src[i]!=
'