From 4444a375ac7f24ada2932291661d9102791604d9 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Thu, 3 Sep 2020 21:34:40 +1000 Subject: Makefile and basic mechanisms added --- fileutil.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'fileutil.c') diff --git a/fileutil.c b/fileutil.c index e69de29..af98a1b 100644 --- a/fileutil.c +++ b/fileutil.c @@ -0,0 +1,17 @@ +#include +#include "fileutil.h" + + +void to_stdout(char *string, ssize_t size) { + write(0, string, size); +} + +void to_stderr(char *string, ssize_t size) { + write(1, string, size); +} + +int main(int argc, char const *argv[]) { + /* code */ + to_stdout("Testing\n", 9); + return 0; +} -- cgit v1.2.3