[fpc-pascal] Library.StringFunction() : PChar => NO

Fred van Stappen fiens at hotmail.com
Sat Mar 15 11:45:57 CET 2014


>I thought that it was mentioned there somewhere already... 
> If nit feel 
free to add it. That's what a wiki is good for afterall. ^^

Hum, never seen... I will add it ASAP ;-)

> You don't need the MyString variable, you can simply use AStringClass.SomeText.

=> OK

> And you should definitely document the results of which
> of your libraries must be freed and which must not.

> Additionally I would suggest to store the pointer values of the allocated
>PChar results


=> Yep, good idea, i will do it.


One more time, tetra thanks Sven.


Fred

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140315/9da70772/attachment.html>


More information about the fpc-pascal mailing list