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

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