feat: read files and split them by lines

This commit is contained in:
lisk77 2025-08-16 08:16:04 +02:00
parent 390f2d367a
commit 4e4e7be60e
4 changed files with 70 additions and 1 deletions

16
include/file.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef FILE_H
#define FILE_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
typedef struct {
char** content;
uint64_t lines;
} File;
File* new_file(const char*);
#endif // FILE_H

View file

@ -1,5 +1,9 @@
#ifndef MYERS_H
#define MYERS_H
#include <string.h>
#include "action_list.h"
ActionList* myers_diff(char**, char**, uint64_t, uint64_t);
#endif // MYERS_H