Re: gets(0) quibble...
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Feb 16, 1999
- 425 views
>> Question: Which style of input() has Rob used in prompt_string() in the >> new library files? Or does he avoid gets() altogether? I consider this a bug and am assuming Robert will fix it. (btw: did you fix the zero bug in puts ?) Anyway, here is a working 'wrapped' version of gets () global function gets (integer fh) sequence s s = {getc(fh)} while s[length(s)] != '\n' do s = append(s, getc(fh)) end while return s end function This will work. Ralf Nieuwenhuijsen .... Mailto://nieuwen at xs4all.nl .... Http://www.xs4all.nl/~nieuwen .... Uin://9289920