自己写一个类似功能的,按自己需要的搞。
【 在 nwn 的大作中提到: 】
: 读读文档就知道了
: The strncpy function copies the initial count characters of strSource to strDest and returns strDest. If count is less than or equal to the length of strSource, a null character isn't appended automatically to the copied string. If count is greater than the length of strSource, the destination string is padded with null characters up to length count.
: strncpy 不是最多复制 count 个字符,而是 *一定* 复制 count 个字符。
: ...................
--
FROM 221.221.48.*