mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
Add create command
This commit is contained in:
6
include/create.h
Normal file
6
include/create.h
Normal 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
17
include/utility.h
Normal 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
|
||||
Reference in New Issue
Block a user