From d93e63f743266c63f1038e871bc2d954a00173e3 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 12 Aug 2018 18:38:43 +0200 Subject: [PATCH] mescc: Mes C Library: Support oputs for POSIX. * lib/libmes.c (oputs)[POSIX]: New function. --- lib/libmes.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/libmes.c b/lib/libmes.c index 22a6df59..2e90ef91 100644 --- a/lib/libmes.c +++ b/lib/libmes.c @@ -230,6 +230,15 @@ eputs (char const* s) write (STDERR, s, i); return 0; } + +#define STDOUT 1 +int +oputs (char const* s) +{ + int i = strlen (s); + write (STDOUT, s, i); + return 0; +} #endif int