> On Jun 30, 2023, at 9:03 AM, Hairy Pixels <[email protected]> wrote:
>
> That's why that worked. Hmm with short strings the null terminator could be
> truncated when copying right? Something to look out for.
this is what I meant about truncation. S is no longer null terminated and now
the pchar will fail when passed to C libraries right?
var
s: String;
p: Pchar;
begin
s := 'hello';
p := @s;
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal