#include "defines.h"
#include "stack.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
◆ finalize_Stack()
void finalize_Stack |
( |
struct stack_T * |
stack | ) |
|
◆ get_Stack_nElements()
int get_Stack_nElements |
( |
struct stack_T * |
stack | ) |
|
◆ initialize_Stack()
int initialize_Stack |
( |
struct stack_T * |
stack, |
|
|
int |
size |
|
) |
| |
Definition at line 10 of file stack.cpp.
20 if (stack->
data == NULL)
23 printf(
"Error allocating memory in initialize_Stack");
25 sprintf( log_Text,
"Error allocating memory in initialize_Stack\n");
◆ peak()
◆ peak_Prev()
◆ pop()
◆ print_Stack()
void print_Stack |
( |
struct stack_T * |
stack | ) |
|
Definition at line 82 of file stack.cpp.
89 printf(
"Position: %d. Edge id: %d with origin vertex %d.\n",
◆ push()
◆ reset_Stack()
void reset_Stack |
( |
struct stack_T * |
stack | ) |
|
◆ update_Peak()
void update_Peak |
( |
struct stack_T * |
stack, |
|
|
int |
edge |
|
) |
| |