[fpc-pascal] possible bug in blockwrite

Vojtěch Čihák vojtech.cihak at atlas.cz
Sun Mar 5 21:39:11 CET 2023


Hi,
 
you can use PChar, or string+retype to PChar in blockwrite:
 
 BlockWrite(f1, PChar(s)^, length(s)); 
 
which gives expected result.
V.
______________________________________________________________
> Od: "Travis Siegel via fpc-pascal" <fpc-pascal at lists.freepascal.org>
> Komu: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Datum: 05.03.2023 19:02
> Předmět: [fpc-pascal] possible bug in blockwrite
>

 Comments?
 
 I've built in workarounds in my program to solve both of these issues, 
 but it'd be nice if I didn't have to do that.
 
 
 _______________________________________________
 fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
 https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal <https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230305/01e4437a/attachment.htm>


More information about the fpc-pascal mailing list