diff options
author | KatolaZ <katolaz@freaknet.org> | 2018-04-20 00:40:47 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2018-04-20 00:40:47 +0100 |
commit | 8f936bc6c89163e3984ac619612c0ce76a51a74e (patch) | |
tree | 8d936adb262b2098a984e183e47ea9cc2a8d5d03 /buff.h |
first commit
Diffstat (limited to 'buff.h')
-rw-r--r-- | buff.h | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -0,0 +1,34 @@ +#ifndef __BUFF_H__ +#define __BUFF_H__ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +typedef struct line_t { + char *c; + unsigned int s; + struct line_t *prev; + struct line_t *next; +} line_t; + + +extern line_t *b_start; +extern line_t *b_end; +extern line_t *cur; +extern unsigned int num; +extern unsigned int pos; +extern int addr1, addr2; + +int read_lines(FILE *); +void print_lines(char); +void print_cur_line(char); +int move_to_line(int, char); +void print_lineno(); +void append_lines(); +void insert_lines(); +void delete_lines(); + + + +#endif /* __BUFF_H__ */ |