Skip to content
Snippets Groups Projects
Commit 88fcebd0 authored by jonas.stirnema's avatar jonas.stirnema
Browse files

Added prototype function for stack_is_empty

parent d7652744
No related branches found
No related tags found
1 merge request!19Resolve "Add is empty function"
This commit is part of merge request !19. Comments created here will be created in the context of that merge request.
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include "stack.h"
......
#ifndef _STACK_H_
#define _STACK_H_
typedef struct _stack {
int *data;
int capacity;
......@@ -17,6 +16,7 @@ void stack_pop(stack *s, int *value);
void stack_peek(stack s, int *value);
void stack_clone(stack s, stack *clone);
int get_length(stack s);
bool stack_is_empty(stack s);
void stack_print(const stack s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment