updating oE allocate_pointer_array


include machine.e 
namespace machine 
public function allocate_pointer_array(sequence pointers, types :boolean cleanup = 0) 

Allocate a NULL terminated pointer array.

  1. pointers : a sequence of pointers to add to the pointer array.
  2. cleanup : an integer, if non-zero, then the returned pointer will be automatically freed when its reference count drops to zero, or when passed as a parameter to delete

This function adds the NULL terminator.

Example 1:
atom pa 
pa = allocate_pointer_array({ allocate_string("1"), allocate_string("2") }) 
See Also:

Using Pointer Arrays, allocate_string_pointer_array, free_pointer_array

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu