summaryrefslogtreecommitdiff
path: root/fileutil.c
blob: af98a1bf62c1a12dfa7aade993b011109fedbd6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}