On Wed, 17 Apr 2002, Edward J Glamkowski wrote: >What worries me about this is, under MSVC6 on Win98 anyways, >after executing the rewind(fl), it goes back to the top of the >while loop, even though the rewind() is not (that I can see) part >of the while loop. > >That is, it behaves like: > > while (get_line(fl, buf)) { > if ((strchr("MOPGERD", buf[0]) && buf[1] == ' ') || (buf[0] == 'S' && buf[1] == '\0')) > num_of_cmds++; > > rewind(fl); > } So you mean it becomes an infinite loop in MSVC6? -- George Greer greerga@circlemud.org -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT