Initial import
This commit is contained in:
commit
405b86068e
324 changed files with 163599 additions and 0 deletions
10
tests/tprintf.nim
Executable file
10
tests/tprintf.nim
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
# Test a printf proc
|
||||
|
||||
proc printf(file: TTextFile, args: openarray[string]) =
|
||||
var i = 0
|
||||
while i < args.len:
|
||||
write(file, args[i])
|
||||
inc(i)
|
||||
|
||||
printf(stdout, ["Andreas ", "Rumpf\n"])
|
||||
#OUT Andreas Rumpf
|
||||
Loading…
Add table
Add a link
Reference in a new issue