Returns the current position of the stack.
     
 
Integer_Type stk_current( Stack_Type stack ) 
 
      
	This routine returns the current position within a stack.
	This position determines the element returned by calls
	to stk_read_next().
       
      
	When a stack is created, the current position is set to 0
	and it is increased by 1 each time stk_read_next()
	is called. The position can also be changed by the skt_set_current()
	and stk_rewind() functions.
       
     
if ( stk_current(stk) == stk_count(stk) ) stk_rewind(stk);  
	  
	    This code will reset the stack to its start position,
	    by calling stk_rewind(), if it has reached the end
	    of the stack.
	   
	 
 
- modules
 
- 
stackio
 
- stackio
 
- 
stk_append,
stk_build,
stk_change_current,
stk_change_num,
stk_close,
stk_count,
stk_delete_current,
stk_delete_num,
stk_disp,
stk_expand_n,
stk_read_next,
stk_read_num,
stk_rewind,
stk_set_current
 
 
 
 |