[comp.sys.ibm.pc] MSC5.1 bug in printf

det@hawkmoon.MN.ORG (Derek E. Terveer) (06/18/89)

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 <malloc.h>, 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