Mail Archives: djgpp/1994/01/03/06:09:05
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." | \
/ | | \
/ |______________________________________________________| \
/____________) (___________\
- Raw text -