... or in other words: Just use \n as line termination character, ending the line read
Check if the last character read is \n (usually it is else it is EOF), throw the \n away Ceck if last character is now \r and drop if yes. Now you have read a single line, either empty or not empty. Not empty needs processing of data. Empty means, read next line and test if it is empty too, Yes -> you are done, else the line contains more data which loops back to processing _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
