home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18254 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.2 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!concert!rutgers!sun-barr!cs.utexas.edu!convex!nrc.com!kosman!kevin
  2. From: kevin@kosman.uucp (Kevin O'Gorman)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Another THINK C 5.0.3 bug?
  5. Message-ID: <1992Nov10.230616.18453@kosman.uucp>
  6. Date: 10 Nov 92 23:06:16 GMT
  7. References: <#9m158g@rpi.edu>
  8. Organization: Vital Software Services, Oxnard, CA
  9. Lines: 24
  10.  
  11. simsh@crockett1a.its.rpi.edu (Chewbacca) writes:
  12.  
  13. >Hello everyone. Here is my test program:
  14.  
  15. >   #include <stdio.h>
  16.  
  17. >   void main()
  18. >   {
  19. >      int h;
  20. >      h=5;
  21. >      printf("%d\n",h);
  22. >   }
  23.  
  24. >Simple enough. Well, with 4-bit ints turned on, this program prints out 0.
  25. >With 4-bit ints off, it prints 5 like it should. The global optimizer is off.
  26. >Is this another bug? Or has it already been seen and I just didn't read about
  27. >it?
  28.  
  29. The manuals point out that if you're going to turn on 4-byte (not bits, I
  30. hope!) ints, you need to rebuild the ANSI library.  That's where printf lives.
  31. -- 
  32. Kevin O'Gorman ( kevin@kosman.UUCP, kevin%kosman.uucp@nrc.com )
  33. voice: 805-984-8042 Vital Computer Systems, 5115 Beachcomber, Oxnard, CA  93035
  34. Non-Disclaimer: my boss is me, and he stands behind everything I say.
  35.