Luna/apps/app.c

22 lines
341 B
C
Raw Normal View History

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