Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!clyde!cbosgd!ihnp4!ptsfa!lll-lcc!csustan!csun!polyslo!mpatnode From: mpatnode@polyslo.UUCP (Mike Patnode) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: MS-DOS NRO (an 'NROFF'- 'RNO'-like Source in C) Message-ID: <345@polyslo.UUCP> Date: Fri, 22-May-87 00:03:58 EDT Article-I.D.: polyslo.345 Posted: Fri May 22 00:03:58 1987 Date-Received: Sat, 23-May-87 20:53:25 EDT References: <405@ritcv.UUCP> <725@thumper.UUCP> Reply-To: mpatnode@polyslo.UUCP (Mike Patnode) Distribution: na Organization: Cal Poly State Univ,CSC Dept,San Luis Obispo,CA 93407 Lines: 21 Keywords: NRO Xref: mnetor comp.lang.c:2228 comp.sys.ibm.pc:4314 In article <725@thumper.UUCP> tr@thumper.UUCP writes: >With Microsoft C v 4.0, I had to add one line to two files. The line was > > #include > >and the files were nrocmd.c and nrotxt.c. I mention because if you >thought that this code would work only for the C Innovations compiler, >you don't need to worry. I suspect this would compile on Unix C >compilers too. But... there is one more small problem for all you MSC an BSD 4.2 users. Look for two occurances of the following. toupper(p++) This is a BIG NO-NO since toupper is actually a macro which evaluates it's arguments 3 times!!!!! In both cases simply add another line with just p++; ------------------------------------------------------------------ Mike "Dodger" Patnode | ..csustan!polyslo!mpatnode Western Mobile Communications | or (but really just a student) | mpatnode@polyslo.UUCP 3020 Skyway Dr. | (805) 922-0517 Santa Maria, Ca | (805) 541-2382