strcpy

  • 网络函数;拷贝字符串
strcpystrcpy
  1. The strcpy function can be implemented using the " S " and " D " constraints in the following manner

    strcpy函数可以通过以下方式使用“S”和“D”约束来实现

  2. You also have to use the memalign function and strcpy to copy the data into an area of appropriate alignment .

    另外,还需要使用memalign函数和strcpy将数据复制到合适对齐的区域。

  3. We 've all seen the C string functions like strcpy (), sprintf (), atol (), etc.

    我们都已经见过C语言中的字符串函数,strcpy(),sprintf(),atoll()等。

  4. String . h is for the string functions such as strcpy () and strcmp () .

    h是strcpy()和strcmp()这样的字符串函数所需要的。

  5. The correct way to do this would be to use the strncpy () function instead of strcpy (), and give the maximum number of bytes to copy as BUFSIZ-1 .

    复制的正确方法是用strncpy()函数代替strcpy(),并将要复制的最大字节数定为BUFSIZ-1。

  6. This means that switching from strcpy ( 3 ) to strncpy ( 3 ) can reduce performance & often not a serious problem on today 's computers , but it can still be a nuisance .

    这意味着从strcpy(3)切换到strncpy(3)会降低性能――这在如今的计算机上通常不是一个严重的问题,但它仍然是有害的。

  7. The function loads the file data using a single call to fread (), copying the data into a separate structure , before using a strcpy () to move the data from the loaded string to the global string .

    此函数通过调用fread()装载文件数据,把数据复制到另一个结构中,然后使用strcpy()把数据从装载的字符串转移到全局字符串中。

  8. 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等常用函数的队伍中,都是由于可通过缓存溢出进行安全攻击而被禁用。

  9. 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来填充整个目标空间。