change file trans.{c,h} to encode.{c,h}

This commit is contained in:
Eric 2025-05-26 23:12:16 +02:00
parent 221a8588c0
commit 28fcd5ed7a
4 changed files with 7 additions and 7 deletions

View file

@ -1,12 +1,12 @@
CFLAGS = -g -Wall -Wextra -Werror
objects = main.o input.o trans.o
objects = main.o input.o encode.o
b64 : $(objects)
cc -o b64 $(objects)
main.o trans.o input.o : input.h
main.o trans.o : trans.h
main.o encode.o input.o : input.h
main.o encode.o : encode.h
.PHONY : clean
clean :

View file

@ -1,4 +1,4 @@
#include "trans.h"
#include "encode.h"
#define PADDING '='

View file

@ -1,5 +1,5 @@
#ifndef HEADER_TRANS
#define HEADER_TRANS
#ifndef HEADER_ENCODE
#define HEADER_ENCODE
int
encode(unsigned char *op, int olen, unsigned char *sp);

2
main.c
View file

@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "input.h"
#include "trans.h"
#include "encode.h"
#define OBUFSIZE 4
#define SBUFSIZE 5