std:memmove etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
std:memmove etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

31 Temmuz 2017 Pazartesi

std:memmove

Giriş
std::memcpy yazısına göz atabilirsiniz.

source ve destination alanları çakışabilir. Açıklaması şöyle
The memmove() function copies n bytes from memory area src to memory area dest. The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.
İmzası şöyle
void *memmove (void *dest, const void *src, size_t n);
Return Value açıklaması şöyle
 The memmove function returns the value of dest
dest alanını döndüğü için şöyle yapabiliriz.
puts (memmove(dest, src, src_size));