Luna/apps/app.c
apio 7e377ef712
All checks were successful
continuous-integration/drone/push Build is passing
Implement printf()
2023-01-07 01:49:26 +01:00

22 lines
341 B
C

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void bye()
{
printf("byeee!\n");
}
int main()
{
atexit(bye);
printf("Welcome to %s!\n", "Luna");
time_t now = time(NULL);
printf("Realtime clock: %ld s\n", now);
for (int i = 0; i < atoi("8"); i++) { console_write(".", 1); }
console_write("\n", 1);
}