aboutsummaryrefslogtreecommitdiff
path: root/apps/init.c
blob: 5879c1ec1f1fb6bed0917df772924661e717d58e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// MIT License, Copyright (c) 2020 Marvin Borner

#include <conv.h>
#include <def.h>
#include <mem.h>
#include <print.h>
#include <sys.h>

void main()
{
	print("Init loaded.\n");

	char *buf = malloc(10);
	conv_base(42, buf, 8, 0);
	printf("\n----\nTEST: %s\n----\n", buf);
	/* printf("%x %d %b\n ABC %s", 42, 42, 42, "BAUM"); */
	sys0(SYS_LOOP);
	/* sys1(SYS_EXEC, (int)"/a"); */
	while (1) {
		print("b");
	};
}