This commit is contained in:
nub31
2025-05-16 21:09:05 +02:00
parent 57ccd0a38a
commit ecd0e01aac
4 changed files with 22 additions and 46 deletions

View File

@@ -1,2 +1,2 @@
extern func puts(str: string);
extern func printf(fmt: string, ...args: any);
extern func puts(str: string)
extern func printf(fmt: string, ...args: any)

View File

@@ -1,10 +1,11 @@
import c;
import c
global func main(argc: i64, argv: i64) {
printf("args: %d, starts at %p\n", argc, argv);
test(12.1);
printf("args: %d, starts at %p\n", argc, argv)
test(12.1)
return 23
}
func test(a: f64) {
printf("%f\n", a);
printf("%f\n", a)
}