depends on the implementation of the stack, only because it must know the structure of the stack records

s_tack(n,i,a,f,ps)