summaryrefslogtreecommitdiff
path: root/miniany/libc-hosted.c
diff options
context:
space:
mode:
Diffstat (limited to 'miniany/libc-hosted.c')
-rw-r--r--miniany/libc-hosted.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/miniany/libc-hosted.c b/miniany/libc-hosted.c
index 8cb4d46..4c663bf 100644
--- a/miniany/libc-hosted.c
+++ b/miniany/libc-hosted.c
@@ -5,3 +5,22 @@
#include <stdio.h>
#include <stdlib.h>
+
+int putstring( char *s )
+{
+ printf( "%s", s );
+
+ return 0;
+}
+
+int putint( int i )
+{
+ printf( "%d", i );
+
+ return i;
+}
+
+int putnl( void )
+{
+ return puts( "" );
+}