Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!unmvax!deimos.cis.ksu.edu!uxc.cso.uiuc.edu!tank!shamash!com50!mscunx!hawkmoon!det From: det@hawkmoon.MN.ORG (Derek E. Terveer) Newsgroups: comp.sys.ibm.pc Subject: MSC5.1 bug in printf()? Keywords: software, compilers, C Message-ID: <980@hawkmoon.MN.ORG> Date: 17 Jun 89 22:55:10 GMT Organization: One of the Eternal Champions - Richfield, MN, 554232523, USA Lines: 28 Is there any known bug in the MSC 5.1 compiler with printf() functions? I have encountered strange occurances before with printf()s not behaving as i would expect. Here is the fragment of code in question. The printf() hangs witht he leading underscore, but doesn't without it.... Very strange! #ifdef DEBUG if (debuglevel>8) then {printf("cp: before getmem(): size=%ld",stbuf.st_size); /* the following statement hangs the PC! The only difference between * this and the next one (that works) is the leading underscore "_" on * memavl in the format string... very strange. * A msc5.1 bug???? >>>> printf(" _memavl()=%u",_memavl()); */ ^ | V >>>> printf(" memavl()=%u",_memavl()); printf(" _memmax()=%u\n",_memmax()); } #endif I have included , per the man page for memavl(). -- Derek Terveer det@hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det w(612)681-6986 h(612)688-0667 "A proper king is crowned" -- Thomas B. Costain