:orphan: # PetscIntStackTop This function returns the top of the stack. ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscIntStackTop(PetscIntStack stack, int *top) ``` Not Collective ## Input Parameter - ***stack -*** The stack ## Output Parameter - ***top -*** The integer on top of the stack ## See Also `PetscIntStackCreate()`, `PetscIntStackDestroy()`, `PetscIntStackEmpty()`, `PetscIntStackPush()`, `PetscIntStackPop()` ## Level developer ## Location src/sys/logging/utils/stack.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/logging/utils/stack.c) [Index of all Profiling routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)