Luna/apps/app.c
apio 9afff7c544
All checks were successful
continuous-integration/drone/push Build is passing
kernel: Add a fun splash screen during boot :)
Mostly for fun.
Has a lot of delay in order to see the actual splash screen.
2023-02-27 16:23:51 +01:00

26 lines
467 B
C

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void bye()
{
printf("byeee!\n");
}
int main()
{
atexit(bye);
printf("Welcome to %s from userspace!\n", "Luna");
char* address = (char*)malloc(1);
printf("address: %p\n", address);
printf("memory at address: %c\n", *address);
*address = 'e';
printf("memory at address: %c\n", *address);
free(address);
time_t now = time(NULL);
printf("date: %s", ctime(&now));
}