change function definitions

Buffers are no longer wired into any input or translation functions.
They are supplied as arguments through main.
This commit is contained in:
Eric 2025-05-26 12:23:54 +02:00
parent 9b1fe95a8e
commit 848c3749d2
5 changed files with 53 additions and 60 deletions

10
trans.h
View file

@ -1,12 +1,10 @@
#ifndef HEADER_TRANS
#define HEADER_TRANS
#include "input.h"
int
encode(unsigned char *op, int olen, unsigned char *sp);
unsigned char *
encode(unsigned char *op, int np);
unsigned char *
decode(unsigned char *sp, int *np);
int
decode(unsigned char *sp, int slen, unsigned char *op);
#endif