summaryrefslogtreecommitdiff
path: root/fileutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'fileutil.c')
-rw-r--r--fileutil.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/fileutil.c b/fileutil.c
index e69de29..af98a1b 100644
--- a/fileutil.c
+++ b/fileutil.c
@@ -0,0 +1,17 @@
+#include <unistd.h>
+#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;
+}