feat: read files and split them by lines
This commit is contained in:
parent
390f2d367a
commit
4e4e7be60e
4 changed files with 70 additions and 1 deletions
16
include/file.h
Normal file
16
include/file.h
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue