PetscStrlen

Gets length of a string

Synopsis

#include "petsc.h"   
int PetscStrlen(const char s[],int *len)
Not Collective

Input Parameters

s -pointer to string

Output Parameter

len -length in bytes

Note

This routine is analogous to strlen().

Null string returns a length of zero

Level:intermediate
Location:
src/sys/src/utils/str.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/dm/ao/examples/tutorials/ex1.c.html