On 23 mrt 2005, at 22:16, Jeffrey Pohlmeyer wrote:
program vdnstbi;
var
s:string;
begin
str(16, s); // Variable "s" does not seem to be initialized
WriteLn(s);
end.
Does "S" really need to be initialized ?
No, that is an error in the compiler. I don't know whether it has
already been fixed i
> BlockRead (Fin,buf,Sizeof(buf),NumRead);
> Should the buf be initialized (and if so - how)
Maybe like this:
FillByte(buf, Sizeof(buf), 0);
I tried the blockread example with FPC
v1.0.10, v1.9.6, v1.9.4, and v1.9.8
and none of them gives a warning here.
However, the example below gives me