<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        Hi all,<div><br></div><div>I just found out that you can avoid this automatic interpretation as C string if you use a type alias to char*. This could at least help if an external library forgets the NULL character for that returned char* and makes your VM crash. :-)</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 10.06.2020 12:35:27 schrieb Marcel Taeumel <marcel.taeumel@hpi.de>:</p><div style="font-family:Arial,Helvetica,sans-serif"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">Hi all!<div class="mb_sig"></div><div><br></div><div>The FFI plugin automatically converts "char*" return values into a Smalltalk string when returning from the FFI call.</div><div><br></div><div>I would rather leave this conversion to the image side because you have to do it anyway when interpreting external structures. See ExternalData >> #fromCString. And because it can be dangerous. Note that I do like automatic String-to-char* conversion when making an FFI call. Just not the other way around.</div><div><br></div><div>See (Threaded)FFIPlugin >> #ffiReturnCStringFrom:.</div><div><br></div><div>What are your thoughts on this matter?</div><div><br></div><div>Best,</div><div>Marcel</div></div></div></blockquote>
                                        </div></body>