What's the difference between strcpy and stpcpy?

后端 未结 6 969
不知归路
不知归路 2021-01-01 12:57

While reading the man page for strcpy, I discovered the function stpcpy also exists. However, the only difference I could notice in the man page is

6条回答
  •  不思量自难忘°
    2021-01-01 13:53

    Wikipedia entry for restrict

    In short, restrict tells the compiler that the segments of memory pointed to by s1 and s2 do not overlap; this allows the code to perform less error checking.

提交回复
热议问题