petsc-3.7.1 2016-05-15
Report Typos and Errors

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

#include "petscsys.h"   
PetscErrorCode  PetscMemmove(void *a,void *b,size_t n)
Not Collective Many br

Input Parameters

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

Output Parameter

a -pointer to copy space Many br

Many br

Note

This routine is analogous to memmove(). Many br

Since b can overlap with a, b cannot be declared as const Many br

See Also

PetscMemcpy()

Level:intermediate
Location:
src/sys/utils/memc.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages