mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-09-24 07:54:25 +00:00
formatting source-code for b388e4a309
This commit is contained in:
@@ -2,10 +2,9 @@
|
||||
author: Christian Bender
|
||||
|
||||
This header represents the public stack-interface.
|
||||
The stack is generic and self growing.
|
||||
The stack is generic and self growing.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __STACK__
|
||||
#define __STACK__
|
||||
|
||||
@@ -15,15 +14,15 @@
|
||||
void initStack();
|
||||
|
||||
/*
|
||||
push: pushs the argument onto the stack
|
||||
push: pushs the argument onto the stack
|
||||
*/
|
||||
void push(void * object);
|
||||
void push(void *object);
|
||||
|
||||
/*
|
||||
pop: pops the top element of the stack from the stack.
|
||||
assumes: stack not empty.
|
||||
*/
|
||||
void * pop();
|
||||
void *pop();
|
||||
|
||||
/*
|
||||
size: gets the number of elements of the stack.
|
||||
@@ -38,6 +37,6 @@ int isEmpty();
|
||||
/*
|
||||
top: returns the top element from the stack without removing it.
|
||||
*/
|
||||
void * top();
|
||||
void *top();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user