PetscStrcpy#

Copies a string

Synopsis#

static inline PetscErrorCode PetscStrcpy(char s[], const char t[])

Not Collective, No Fortran Support

Input Parameters#

  • t - pointer to string

Output Parameter#

  • s - the copied string

Notes#

NULL strings returns a string starting with zero. It is recommended you use PetscStrncpy() (equivelently PetscArraycpy() or PetscMemcpy()) instead of this routine.

See Also#

PetscStrncpy(), PetscStrcat(), PetscStrlcat(), PetscStrallocpy(), PetscArrycpy(), PetscMemcpy()

Level#

intermediate

Location#

include/petscstring.h

Examples#

src/vec/is/sf/tutorials/ex1.c.html
src/ksp/ksp/tutorials/ex10.c.html
src/ksp/ksp/tutorials/ex72.c.html
src/ksp/ksp/tutorials/ex75.c.html
src/ksp/ksp/tutorials/ex76.c.html
src/ts/tutorials/ex11.c.html
src/ts/tutorials/ex18.c.html
src/ts/tutorials/ex8.c.html
src/ts/tutorials/extchem.c.html
src/ts/tutorials/extchemfield.c.html
src/ts/utils/dmplexlandau/tutorials/ex2.c.html


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages