diff options
Diffstat (limited to 'msgout.cc')
-rw-r--r-- | msgout.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/msgout.cc b/msgout.cc new file mode 100644 index 0000000..e26dcdd --- /dev/null +++ b/msgout.cc @@ -0,0 +1,7 @@ +# include <fcntl.h> +# include <luma/main.hh> +# include <unistd.h> +void luma::msgout(char const * msg) { + int pipe = ::open("/dev/stdout",O_WRONLY); + return luma::msg(pipe,msg); +} |