In theory, strncpy ( 3) is the safe replacement for strcpy ( 3), but strncpy ( 3) also fills the entire destination with NULs once the end of the source string has been met. 从理论上讲,strncpy(3)是strcpy(3)的安全替代者,但是strncpy(3)还会在源字符串结束时使用NUL来填充整个目标空间。
The strlcpy() function copies the NUL-terminated string from "src" to "dst"( up to size-1 characters). strlcpy()函数把以NUL结尾的字符串从“src”复制到“dst”(最多size-1个字符)。
The function strncpy ( 3) also doesn't NUL-terminate its destination if the source string is at least as long as the destination; this can cause havoc later. 如果源字符串至少和目标一样长,那么函数strncpy(3)还不会使用NUL来结束字符串;这可能会在以后导致严重破坏。
This also doesn't copy a NUL character, which can be problem too. 这个函数也不会复制NUL字符,这可能也是一个问题。
Nul laughs, saying that Loku is too good to have adventures like him. Nul笑说,你Loku是太好以至于不能有像他般的冒险。
Message parameter contains a nul character, the message in the event log is terminated at the nul character. 参数包含nul字符,则事件日志中的消息将在nul字符处终止。
Phenolic resin modified by melamine and cashew nul shell oil can be used as adhesive for various base materials in brake shoes. 用腰果壳油和三聚氰胺对酚醛树脂进行改性,可用作刹车片中各种基料的胶粘剂。