mirror of https://github.com/tailix/libkernaux.git
24 lines
449 B
C
24 lines
449 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_NOTNULL_RETURN(file);
|
|
KERNAUX_NOTNULL_RETURN(out);
|
|
|
|
file->out = out;
|
|
}
|