apio
9afff7c544
All checks were successful
continuous-integration/drone/push Build is passing
Mostly for fun. Has a lot of delay in order to see the actual splash screen.
26 lines
467 B
C
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));
|
|
}
|