summaryrefslogtreecommitdiff
path: root/miniany/libc-hosted.c
blob: 4c663bf1c3aef1cc35ab48028a61a16c13334c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * include files for C library of the host. Currently only tested
 * with glibc 2.31.
 */

#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( "" );
}