[wip] add read and write

This commit is contained in:
2025-04-26 19:03:39 +03:00
parent 4f610340f5
commit 87f3239c52
2 changed files with 310 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
#include <stdio.h>
#include <unistd.h>
#include "config.h"
#include "color.h"
@@ -15,8 +17,10 @@
#if ENABLE_STDOUT == 1
#define pr_stdout(...) { printf(__VA_ARGS__); }
#define write_stdout(data, size) { write(1, (data), (size)); }
#else
#define pr_stdout(...) {}
#define write_stdout(data, size) {}
#endif