- Jun
- 111
- 1
C:\temp>ver /r
TCC 10.00.70 Windows XP [Version 5.1.2600]
TCC Build 70 Windows XP Build 2600 Service Pack 3
Registered to Howard Goldstein - 1 System License
C:\temp>set h=%@balloc[80]
C:\temp>echo %@bpokestr[%h,0,a,ABCDEFGHIJ]
0
C:\temp>echo %@bpeekstr[%h,0,a,10]
ABCDEFGHIJ
C:\temp>type insert.txt
Insert
C:\temp>set f=%@fileopen[insert.txt,r]
C:\temp>echo %@bread[%h,0,%f,0,6]
6
C:\temp>echo %@bpeekstr[%h,0,a,10]
InsertGHIJ
C:\temp>echo %@bpokestr[%h,0,a,xyz]
0
C:\temp>echo %@bpeekstr[%h,0,a,10]
xyz
C:\temp>
Note that @BRead does not truncate the buffer but @BPokeStr does. Is this
WAD? I don't see anything about this behavior in the help topics.
--
Howard
TCC 10.00.70 Windows XP [Version 5.1.2600]
TCC Build 70 Windows XP Build 2600 Service Pack 3
Registered to Howard Goldstein - 1 System License
C:\temp>set h=%@balloc[80]
C:\temp>echo %@bpokestr[%h,0,a,ABCDEFGHIJ]
0
C:\temp>echo %@bpeekstr[%h,0,a,10]
ABCDEFGHIJ
C:\temp>type insert.txt
Insert
C:\temp>set f=%@fileopen[insert.txt,r]
C:\temp>echo %@bread[%h,0,%f,0,6]
6
C:\temp>echo %@bpeekstr[%h,0,a,10]
InsertGHIJ
C:\temp>echo %@bpokestr[%h,0,a,xyz]
0
C:\temp>echo %@bpeekstr[%h,0,a,10]
xyz
C:\temp>
Note that @BRead does not truncate the buffer but @BPokeStr does. Is this
WAD? I don't see anything about this behavior in the help topics.
--
Howard