SmartFolder  1.0
SmartFolder is a way to search files on your system and group the results. The program will interpret search queries and create a folder with symbolic links to all the found matches.
Stack.c File Reference

Source file that contains the implementation for a generic Stack data structure. More...

#include "Stack.h"
Include dependency graph for Stack.c:

Functions

StackinitStack ()
 
void push (Stack *s, void *element)
 
void * pop (Stack *s)
 
int isEmpty (Stack *s)
 
void deleteStack (Stack *s)
 

Detailed Description

Source file that contains the implementation for a generic Stack data structure.

Authors
Maxime Lovino, Thomas Ibanez
Date
January 25, 2017
Version
1.0

Function Documentation

void deleteStack ( Stack s)

Function to delete a Stack and free its memory

Parameters
sA pointer to the Stack
Stack* initStack ( )

Function to initialize an empty Stack

Returns
A pointer to an empty Stack
int isEmpty ( Stack s)

Function to check if a Stack is empty

Parameters
sA pointer to the Stack
Returns
1 if the Stack is empty, 0 otherwise
void* pop ( Stack s)

Function to pop the first element of the Stack

Parameters
sA pointer to the Stack
Returns
The first element of the Stack
void push ( Stack s,
void *  element 
)

Function to insert an element (push) in the Stack

Parameters
sA pointer to the Stack
elementThe element we want to insert