Hi,

Are strings not zero terminated? I have a function declared:

function myfunc(s :String; i: Integer):String;

When going through the string "s" with asm instructions, it does not seem to have a zero byte at the end. Is this normal or something is not OK (maybe now with utf8 strings as defaults it is not there any longer)?

I got around this by doing a StrPCopy into a buffer of bytes, so just asking.

Thanks for any feedback

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to