Unfortunately, I cannot compile it on my OSX 10.10... here's what I get: http://pastebin.com/cVvaYFEH
EDIT: just make next() function void and it works.
EDIT2: still no fortune :(
$ ./c4 hello.c
[1] 33920 segmentation fault ./c4 hello.c
replies(3):