Re: Allocating string space

new topic     » goto parent     » topic index » view thread      » older message » newer message

Irv Mullins wrote:

>Does allocate_string allocate a whole new string
> with a c-style pointer, and if so, does it free this
> string once the function is exited?

You should free the string, as you described.

The good news is that the memory should be freed automatically when Euphoria
shuts down. So it's not really not that bad - at least for small
applications.

In Win32Lib, there is a allot_string/free_strings pair filched from Pete.
That way, I can allocate a bunch of strings as I need them, and then free
them all in a single statement.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu