> But instead of explaining >From Araq's manual we know proc printf(format: cstring): cint {.importc, varargs, header: "<stdio.h>".} var n: cint n = printf("My name is %s and I am %d years old!\n", "Ben", 30) echo n
This works fine for me, but I still have to investigate why header pragma is necessary here.