strncpy
语法:
1 2 3 |
? #include <string.h> ? char *strncpy( char *to, const char *from, size_t count ); |
功能:将字符串from 中至多count个字符复制到字符串to中。如果字符串from 的长度小于count,其余部分用’
strncpy
语法:
1 2 3 |
? #include <string.h> ? char *strncpy( char *to, const char *from, size_t count ); |
功能:将字符串from 中至多count个字符复制到字符串to中。如果字符串from 的长度小于count,其余部分用’