diff options
Diffstat (limited to 'fileutil.c')
| -rw-r--r-- | fileutil.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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; +} |
