summary refs log blame commit diff stats
path: root/tests/accept/compile/treadx.nim
blob: 13acb0514a6726040aba104bb739f19b7d5947d4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                    
import posix

var inp = ""
var buf: array[0..10, char]
while true:
  var r = read(0, addr(buf), sizeof(buf)-1)
  add inp, $buf
  if r != sizeof(buf)-1: break

echo inp
#dafkladskölklödsaf ölksdakölfölksfklwe4iojr389wr 89uweokf sdlkf jweklr jweflksdj fioewjfsdlfsd