On Mon, 27 Apr 1998, StormeRider wrote: > do { > lines++; > fgets(temp, 256, fl); > if (*temp) > temp[strlen(temp) - 1] = '\0'; > } while (!feof(fl) && (*temp == '*' || !*temp)); Remove to not skip * lines^----------^ ^----^-Remove to not skip blank >Ok, I want to take out the part about skipping *'s. Also, I noticed that it >skips blank lines, and I'm not sure how its doing that. NOTE: If you remove the !*temp, you'll need to change the if check to: if (*temp) { temp[blah] = blah break; } -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST