PetscStrlen#
Gets the length of a string
Synopsis#
static inline PetscErrorCode PetscStrlen(const char s[], size_t *len)
Not Collective, No Fortran Support
Input Parameter#
s - pointer to string
Output Parameter#
len - length in bytes
Note#
This routine is analogous to strlen(). NULL string returns a length of zero.
See Also#
Level#
intermediate
Location#
Examples#
src/sys/tests/ex31.c
src/sys/tests/ex37.c
src/ts/tutorials/ex18.c
src/ts/tutorials/ex48.c
src/dm/impls/moab/tests/ex2.cxx
src/dm/impls/moab/tests/ex3.cxx
src/dm/impls/plex/tests/ex34.c
src/mat/tests/ex237.c
src/vec/vec/tests/ex48.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages