26 lines
354 B
C
Raw Permalink Normal View History

2025-03-25 15:45:24 +01:00
#include <stdint.h>
#include <stdio.h>
2025-03-26 16:06:36 +01:00
typedef struct {
int64_t length;
char data[];
} Str;
2025-03-26 12:57:22 +01:00
int64_t notice(void)
{
printf("NOTICE!\n");
return 0;
}
2025-03-25 15:45:24 +01:00
int64_t print_int(int64_t value)
{
printf("%ld\n", value);
return 0;
}
2025-03-26 16:06:36 +01:00
int64_t println(const Str* value)
{
printf("%.*s\n", (int)value->length, value->data);
return 0;
}