How to use and when is good use memmove in C?

前端 未结 3 1250
野的像风
野的像风 2021-02-19 12:06

I have two doubt about use of memmove():

  • When is preferable use this function instead of use another function (i.e. a created own functio
3条回答
  •  礼貌的吻别
    2021-02-19 12:58

    When is preferable use this function instead of use another function (i.e. a created own function)

    It's faster than a "created own function".

    the signature of the function is void *memmove(void *dest, const void *src, size_t n). If I have a simple array arr[N], how can I put it into the called function? arr[N] or &arr[N]

    Just arr?

提交回复
热议问题