init c and janet

This commit is contained in:
2026-07-17 07:07:38 +02:00
commit 088b36f4d2
2 changed files with 17 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include "stdio.h"
typedef struct {
double real;
double imag;
} Complex;
void complex_print(Complex z) {
printf("%f + %f i", z.real, z.imag);
}
int main() {
Complex z = {2.0, 4.0};
complex_print(z);
return 1;
}
+1
View File
@@ -0,0 +1 @@
(print "hello world")