> I integrated your patch, and added your example and more > details in the usage() function. > > But correct me if I am wrong, "continue" should be "break" > here :
No, no, no, it should be continue! This is just semantics of handling possible empty lines. In case of continue, we just ignore empty lines and keep reading stdin. In case of break, first empty line abort the process. The process is over when stdin is finished, fgets returns false then and while loop is over. stdin is finished - if you run it manually, when you press Ctrl-D - if you redirect from pipe or file - when it is finished ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Scid-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scid-users
