Hi,
As for as I know, malloc is not supported in Origin C.
As for the structure you need, maybe you can use a group of vectors.
For example:
struct my_struct
{
int ID;
string name;
int age;
double salary;
};
you can define the vectors as:
vector <int> ID;
vector <string> name;
vector <int> age;
vector salary;
int nSize = 10;
ID.SetSize(nSize);
//... name, age, salary .SetSize()
int nIter = 0;
nIter = nIter + 1; // equivalent to liste_nouveau = liste_nouveau->next_cell;
As the size and elements of a vector can be changed dynamcally, the linked list can be simulated with the vectors.