Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Fast Library For Clipper 3.02 Reference - <b>stackhead()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    StackHead()

         Returns the head of the FIFO stack

    Syntax:

         StackHead( aStack ) -> xHeadValue

         aStack : The created stack with StackNew()

    Description:

         Returns the value of the stack head, I mean the last entered
         value, without removing from stack.

    Return:

         The head value of the stack.

    Example:

         aStack  := StackNew ()
         StackPush ( aStack, "hello world" )
         ? StackHead( aStack )            // "hello world"

See Also: StackNew() StackPop() StackPush() StackEmpty()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson