home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9383 < prev    next >
Encoding:
Text File  |  1992-09-15  |  764 b   |  32 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!ukma!eng.ufl.edu!manta!zzang
  3. From: zzang@stat.ufl.edu (Zhuo Zang)
  4. Subject: BC++ NUL problem
  5. Message-ID: <1992Sep15.220412.21199@eng.ufl.edu>
  6. Originator: zzang@manta
  7. Sender: news@eng.ufl.edu (Usenet Diskhog System)
  8. Organization: University of Florida
  9. Distribution: usa
  10. Date: Tue, 15 Sep 92 22:04:12 GMT
  11. Lines: 19
  12.  
  13. Hello,
  14. the BC++ seems treat the (char)c='\0' as space (' ')
  15. in printf().
  16. please try:
  17.  
  18. ----- foo.c ---
  19. #include <stdio.h>
  20. main()
  21. {
  22.    char c=0;
  23.    printf("%cHe%cll%co\n",c,c,c);
  24.    return;
  25. }
  26.  
  27. I am not sure if this is DOS problem or Borland's problem.
  28. -- 
  29. Zhuo Zang[~{j0WA~}]
  30. Department of Statistics
  31. University of Florida            Email: zzang@stat.ufl.edu
  32.