c++ memcpy return value

前端 未结 5 1629
囚心锁ツ
囚心锁ツ 2021-02-05 02:20

according to http://en.cppreference.com/w/cpp/string/byte/memcpy c++\'s memcpy takes three parameters: destination, source and size/bytes. it also returns a pointer

5条回答
  •  梦如初夏
    2021-02-05 03:04

    By returning a value, an invocation of the memcpy function can be used as an r-value.

提交回复
热议问题