summaryrefslogtreecommitdiffstats
path: root/src/buffer.h
blob: c88fba052a4d21e1f681be6a498e31bd7ee38e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <wchar.h>
#include <wctype.h>

// Block of buffer
struct block {
  wint_t value;
  struct block * pnext;
}; 

struct block * create_buf();
void addto_buf(struct block * buf, wint_t d);
void copybuffer(struct block * origen, struct block * destino);
void del_buf (struct block * buf, int pos);
void flush_buf (struct block * buf);
void erase_buf (struct block * buf);
int get_bufsize(struct block * buf);
int get_pbuflen(struct block * buf);
int get_bufval(struct block * buf, int d);
int find_val(struct block * buf, int value);
struct block * dequeue (struct block * buf);