strncpy()函数

strncpy

语法:

功能:将字符串from 中至多count个字符复制到字符串to中。如果字符串from 的长度小于count,其余部分用’’填补。返回处理完成的字符串。