allbery@ncoast.UUCP (05/22/87)
When compiling the recently posted nro sources under Lattice 3.1 or Microsoft 4.00, everything compiles OK, but it does not process the options properly. It skips the character immediately following the - character. This is due to the following code: switch(tolower(*++p)) { which fails with LC and MSC because tolower is implemented as a macro that uses the argument more than once. Thus, p is incremented more than once. The correct fix is: ++p; switch(tolower(*p)) { I have not scanned the code for any further errors like this, so please beware. I have no connection with the authour of the code, nor the poster, nor anyone else it might hurt me to have a connection with.