mirror of
https://github.com/tailix/libkernaux.git
synced 2026-08-15 11:00:07 -04:00
Main: rename package "file" to "io"
This commit is contained in:
parent
a769944005
commit
7da885e370
22 changed files with 56 additions and 55 deletions
23
src/io.c
Normal file
23
src/io.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <kernaux/assert.h>
|
||||
#include <kernaux/io.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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue