#include <stdio.h> #include "stack.h" void stack_peek(stack s, int *value){ if(s.top>-1 && s.top<s.capacity){ *value=s.data[s.top]; } }