1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2026-08-15 11:00:07 -04:00
libkernaux/src/file.c
2022-06-13 19:28:00 +03:00

23 lines
433 B
C

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <kernaux/assert.h>
#include <kernaux/file.h>
#include <stddef.h>
struct KernAux_File KernAux_File_create(const KernAux_File_Out out)
{
struct KernAux_File file;
KernAux_File_init(&file, out);
return file;
}
void KernAux_File_init(const KernAux_File file, const KernAux_File_Out out)
{
KERNAUX_ASSERT(file);
KERNAUX_ASSERT(out);
file->out = out;
}