Pointers *Shudder*

BlitzMax Forums/BlitzMax Programming/Pointers *Shudder*

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Kind of confused about their usage, I know how to use them in C/C++ (basics anyway) but using them in BlitzMax is another story.

Some code might explain it a little better:

C

struct _mystruct
{
   int value;
}mystruct;

mystruct *structs = 0;


In blitzmax, would that simply be an array of undefined size of type mystruct?

In a little more detail... I have some C code I wrote that I want to port over to BlitzMax. In the code I'm doing the same as above. I'm using malloc to initialize the structs to the size of one 'mystruct'.

Is there an equilavent of that in BlitzMax?