remove most external function calls (except io)
[compress.git] / code.h
CommitLineData
c9987f3b
LM
1#ifndef __CODE_H__
2#define __CODE_H__
3
d3dbaf98
LM
4#include <stddef.h>
5
c9987f3b
LM
6#define NB_BYTES 256
7
8/* byte type */
9
10typedef unsigned char byte_t;
11
12/* code structure */
13
14typedef struct {
15 char code[NB_BYTES - 1 + 1];
16} code_t;
17
18int codcat (char *dst, size_t n, char *src);
19int codcmp (char *cod1, char *cod2);
20int codcpy (char *dst, size_t n, char *src);
21int codlen (char *code);
22
23#endif /* __CODE_H__ */
24
25// vim: ts=4 sw=4 et