PetscMemcpy
Copies n bytes, beginning at location b, to the space beginning at location a. The two memory regions CANNOT overlap, use PetscMemmove() in that case.
Synopsis
int PetscMemcpy(void *a,const 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 memcpy().
Keywords
Petsc, copy, memory
See Also
PetscMemmove()
Level:intermediate
Location:src/sys/src/utils/memc.c
System Index
Table of Contents