-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathcstack.c
More file actions
44 lines (36 loc) · 670 Bytes
/
cstack.c
File metadata and controls
44 lines (36 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "cstack.h"
#include <stddef.h>
#define UNUSED(VAR) (void)(VAR)
hstack_t stack_new(void)
{
return -1;
}
void stack_free(const hstack_t hstack)
{
UNUSED(hstack);
}
int stack_valid_handler(const hstack_t hstack)
{
UNUSED(hstack);
return 1;
}
unsigned int stack_size(const hstack_t hstack)
{
UNUSED(hstack);
return 0;
}
void
stack_push(const hstack_t hstack, const void* data_in, const unsigned int size)
{
UNUSED(hstack);
UNUSED(data_in);
UNUSED(size);
}
unsigned int
stack_pop(const hstack_t hstack, void* data_out, const unsigned int size)
{
UNUSED(hstack);
UNUSED(data_out);
UNUSED(size);
return 0;
}