I am expecting a string of this format:
"id1:param1,par am2;id2:param1, param2,param3;i d"
The tokens are seperated by semicolon ";"
However each token is really a struct of the following format:
struct mst_
{
int id;
struct params_* parms ; //0 or more
struct mst_ *next ;
};
where:
struct params_
{
double argval;
struct params_ * next;
};
Could anyone suggest an elegant way to parse strings with the specified
formatting into a linked list (struct mst_) ?
"id1:param1,par am2;id2:param1, param2,param3;i d"
The tokens are seperated by semicolon ";"
However each token is really a struct of the following format:
struct mst_
{
int id;
struct params_* parms ; //0 or more
struct mst_ *next ;
};
where:
struct params_
{
double argval;
struct params_ * next;
};
Could anyone suggest an elegant way to parse strings with the specified
formatting into a linked list (struct mst_) ?
Comment