# PetscStrgrt If first string is greater than the second ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscStrgrt(const char a[], const char b[], PetscBool *t) ``` Not Collective ## Input Parameters - ***a -*** pointer to first string - ***b -*** pointer to second string ## Output Parameter - ***flg -*** if the first string is greater ## Note Null arguments are ok, a null string is considered smaller than all others ## Fortran Note Not for use in Fortran ## See Also `PetscStrcmp()`, `PetscStrncmp()`, `PetscStrcasecmp()` ## Level intermediate ## Location src/sys/utils/str.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/str.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/docs/manualpages/index.md) [Index of all manual pages](/docs/manualpages/singleindex.md)