Add create command

This commit is contained in:
Fabio Scotto di Santolo
2026-08-01 13:58:19 +02:00
parent 462aa6e5bf
commit 3eae528f54
9 changed files with 176 additions and 51 deletions

6
include/create.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef CREATE_H
#define CREATE_H
int create(const char *directory, const char *output_file);
#endif

17
include/utility.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef UTILITY_H
#define UTILITY_H
#include <unistd.h>
#include <limits.h>
#ifdef PATH_MAX
static long pathmax = PATH_MAX;
#else
static long pathmax = 1024;
#endif
char *strconcat(const char *src, int n, ...);
char *resolve_path(const char *path);
#endif