-
Notifications
You must be signed in to change notification settings - Fork 9
/
ringbuffer.c
26 lines (25 loc) · 875 Bytes
/
ringbuffer.c
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
//
#include "include.h"
void empty_buffer(struct buffer_type *b)
{}
void init_buffer(struct buffer_type *b, unsigned char *buffer)
{}
enum error_type create_buffer(struct buffer_type *b, int size)
{}
int add_char_to_buffer(struct buffer_type *b, unsigned char c,
enum error_type *err) {}
unsigned char get_char_from_buffer(struct buffer_type *b,
enum error_type *err)
{}
int add_string_to_buffer(struct buffer_type *b, unsigned char *s,
enum error_type *err)
{}
unsigned char get_string_from_buffer(struct buffer_type *b, unsigned char *s,
enum error_type *err)
{}
int get_buffer_state(struct buffer_type b)
{}
void print_buffer(struct buffer_type b)
{}
unsigned char *move_pointer_to_next(struct buffer_type *b, unsigned char *p)
{}