On Wed, 20 Jul 2016 19:34:21 -0400, Tony Harminc wrote: >On 20 July 2016 at 16:14, Peter Hunkeler wrote: > >> Is there an interface or any other documented way to get the length of an >> area at a given address? > >I very much doubt it. I don't see anything in the LE Vendor Interfaces >book. > Mac OS has one, but that's irrelevant; not portable.
>I'm curious; what will you do with this info if it is available? > One might use it to decide whether a realloc() is necessary before a strcat(). W3.org uses a couple utilities, StrAllocCopy() and StrAllocCat() to somewhat automate such management of string storage. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
