首页 / 词典 / good

strncat

strncatstrncat
  1. Both strncpy ( 3 ) and strncat ( 3 ) require that you give the amount of space left , not the total size of the buffer .

    strncpy(3)和strncat(3)都要求您给出剩余的空间,而不是给出缓冲区的总大小。

  2. Memcpy () joins the ranks of other popular functions like strcpy , strncpy , strcat , strncat which were banned due to their security vulnerability through buffer overruns .

    memcpy()加入到strcpy,strncpy,strcat,strncat等常用函数的队伍中,都是由于可通过缓存溢出进行安全攻击而被禁用。

  3. Then , we 'll discuss two examples of the static approach ( standard C strncpy / strncat and OpenBSD 's strlcpy / strlcat ), followed by two examples of the dynamic approach ( SafeStr and C + + 's std : : string ) .

    然后,我们将讨论静态方法的两个例子(标准Cstrncpy/strncat和OpenBSD的strlcpy/strlcat),接着讨论动态方法的两个例子(SafeStr和C++的std::string)。