summaryrefslogtreecommitdiff
path: root/miniany/libc-hosted.c
blob: 4154aa12d36a57cee918e4dbcd836097772d3b51 (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
27
28
/*
 * include files for C library of the host. Currently only tested
 * with glibc 2.31.
 */

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>

int putstring( char *s )
{
	printf( "%s", s );
	
	return 0;
}

int putint( int i )
{
	printf( "%d", i );

	return i;
}

int putnl( void )
{
	return puts( "" );
}