🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1521

BC++ NUL problem

#1521
From: Zhuo Zang
Date: Tue, 15 Sep 1992 22:04
19 lines
795 bytes
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
Technical Details
Message-ID: <1992Sep15.220412.21199@eng.ufl.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!ukma!eng.ufl.edu!manta!zzang

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!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