petsc-3.14.6 2021-03-30
Report Typos and Errors

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

Not for use in Fortran

It is recommended you use PetscStrncpy() instead of this routine

See Also

PetscStrncpy(), PetscStrcat(), PetscStrlcat()

Level

intermediate

Location

src/sys/utils/str.c

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/ex8.c.html
src/ts/tutorials/ex11.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