From 3ae088f44533fa21ec6a284638952eeb0b1ca83e Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Mon, 22 May 2017 15:30:13 +0200 Subject: [PATCH] Updated readme with stack functions. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ecb18e0..03eaf20 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,12 @@ A handy collection of C algorithms compiled into one header file for use anywher ## Functionality ### Stack -The stack is probably the most basic storage structure. It contains functions **push** to add to the top of the stack, and **pop** to remove from the top of the stack. +The stack is probably the most basic storage structure, using the 'first-in, first-out' approach. +* Stack createStack() +* void freeStack(Stack *s) +* void pushToStack(int item, Stack *s) +* int popFromStack(Stack *s) +* void printStack(Stack s) ### Queue