From: brssp2!twuyts AT brgtw DOT att DOT com Date: Mon, 3 Jan 94 11:05:12 +0100 Original-From: brssp2!twuyts (283510-Wuyts) To: atlas!porky!salehh%CSOS.ORST.EDU Subject: Re: groff and djgpp Cc: djgpp AT sun DOT soe DOT clarkson DOT edu I have just compiled groff 1.08 on my 486 PC using gcc 2.5.7 an djgpp 1.11. It seems to work OK, but I'm still doing some tests. I found a possible bug in gcc 2.5.7 (or is it djgpp) with sscanf : sscanf should return the number of items scanned succesfully, but it seems to return -1 instead in a few cases, e.g. : returnvalue = sscanf (my_string, "%d-%d", &lower, &upper); with my_string = "10-100" the returnvalue is 2 --> OK with my_string = "10 " the returnvalue is 1, while lower contains 10 --> OK with my_string = "10" (no space after 10) the returnvalue is -1, while lower contains 10 --> BUG ?? A few routines in the groff package expect the returnvalue to be 1, so they need to be changed a bit to make them work. If you're interested, I'll send the makefiles somewhere this week (don't have them here). Regards, Tim ______________________________________________________ _________| Tim Wuyts |_________ \ | AT&T Network Systems Belgium ____ | / \ | +32 2 556 7405 _(____)_ | / \ | twuyts AT hvlpa DOT att DOT com ___ooO_(_o__o_)_Ooo_______| / \ |---------------------------' | / / |"Being intelligent doesn't mean you aren't stupid." | \ / | | \ / |______________________________________________________| \ /____________) (___________\