home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.31 / text0045.txt < prev    next >
Encoding:
Text File  |  1993-07-15  |  608 b   |  18 lines

  1. Submitted-by: davidm@cimshop.UUCP (David S. Masterson)
  2.  
  3. Just my two cents:
  4.  
  5. Shouldn't 'printf "%c" 3' output a NULL byte?  I would expect that the '3'
  6. would be stored in as a 4 byte integer of which the first 3 bytes are '0'.
  7. The '%c' should take the byte at the address of the argument to printf (not
  8. what that argument points to) and output it as an ASCII character (in this
  9. case NULL).  Without testing it, I'm not sure -- is this not what happens?
  10.  
  11. --
  12. David Masterson                    Consilium, Inc.
  13. (415) 691-6311                    640 Clyde Ct.
  14. davidm@consilium.com                Mtn. View, CA  94043
  15.  
  16. Volume-Number: Volume 31, Number 48
  17.  
  18.