home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!ukma!eng.ufl.edu!manta!zzang
- From: zzang@stat.ufl.edu (Zhuo Zang)
- Subject: BC++ NUL problem
- Message-ID: <1992Sep15.220412.21199@eng.ufl.edu>
- Originator: zzang@manta
- Sender: news@eng.ufl.edu (Usenet Diskhog System)
- Organization: University of Florida
- Distribution: usa
- Date: Tue, 15 Sep 92 22:04:12 GMT
- Lines: 19
-
- Hello,
- the BC++ seems treat the (char)c='\0' as space (' ')
- in printf().
- please try:
-
- ----- foo.c ---
- #include <stdio.h>
- main()
- {
- char c=0;
- printf("%cHe%cll%co\n",c,c,c);
- return;
- }
-
- I am not sure if this is DOS problem or Borland's problem.
- --
- Zhuo Zang[~{j0WA~}]
- Department of Statistics
- University of Florida Email: zzang@stat.ufl.edu
-