Luna/apps/app.c
apio 80f5c790f8
All checks were successful
continuous-integration/drone/push Build is passing
Implement string formatting into libc :)
Of course, using <luna/Format.h> makes it so simple. No need for duplicate code!
2023-01-06 20:15:43 +01:00

22 lines
326 B
C

#include <stdio.h>
#include <stdlib.h>
void bye()
{
console_print("byeee!\n");
}
int main()
{
atexit(bye);
char buffer[64];
snprintf(buffer, sizeof(buffer), "Welcome to %s!\n", "Luna");
console_print(buffer);
for (int i = 0; i < atoi("8"); i++) { console_print("."); }
console_print("\n");
}