Hi Scott, Thanks for that. Do you have an example of this been used and then freeing up the memory? Regards, From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx> On Behalf Of Scott Klement Consider using http_xlatedyn() instead. xlatedyn will automatically allocate memory (which has to be deallocated afterwards) so that it can make sure there's enough space for the string. For example, a string that's 1000000 bytes in EBCDIC could be as large as (potentially -- though, unlikely) 6000000 bytes in UTF-8. So xlatedyn() dynamically allocates space as it translates the string to be sure it'll always have enough. It can be used with strings up to 16mb long, so works great with large data. On 5/14/18 4:12 PM, Tony Cesarios wrote:
|
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi