<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Le 01/01/2021 à 00:48, James Richters
via fpc-pascal a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:01d201d6dfcf$718934d0$549b9e70$@productionautomation.net">
<p class="MsoNormal"><span style="mso-bidi-font-family:"Times
New Roman"">I’m not too familiar with PChars, but is
there a way to set it to zero length?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-bidi-font-family:"Times
New Roman"">I set it to #0 and it works ok with the #0 in
there with Notepadd++ but I think it’s technically not
correct.</span></p>
</blockquote>
For me, it's correct. C strings are just terminated with a null
character, no notion of length, the length is not recorded in the
string as in Pascal.<br>
</body>
</html>