PetscStrcpy#
Copies a string
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscStrcpy(char s[], const char t[])
Not Collective
Input Parameters#
t - pointer to string
Output Parameter#
s - the copied string
Notes#
Null string returns a string starting with zero
It is recommended you use PetscStrncpy()
instead of this routine
Fortran Note#
Not for use in Fortran
See Also#
PetscStrncpy()
, PetscStrcat()
, PetscStrlcat()
, PetscStrallocpy()
Level#
intermediate
Location#
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
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages