PetscMemmove

Copies n bytes, beginning at location b, to the space beginning at location a. Copying between regions that overlap will take place correctly.

Synopsis

int PetscMemmove(void *a,void *b,int n)
Not Collective

Input Parameters

b - pointer to initial memory space
n - length (in bytes) of space to copy

Output Parameter

a -pointer to copy space

Note

This routine is analogous to memmove().

Contributed by: Matthew Knepley

Keywords

Petsc, copy, memory

See Also

PetscMemcpy()

Location: src/sys/src/utilsmemc.c
System Index
Table of Contents