Code: Alles auswählen
void MakeParam(char* id, int val)
{
PluginParam* p = new PluginParam;
if (tmp)
tmp->next = p;
p->id = new char[strlen(id)+1];
strcpy(p->id, id);
char buf[10];
sprintf(buf, "%i", val);
p->val = new char[strlen(buf)+1];
strcpy(p->val, buf);
if (!first)
first = p;
p->next=0;
tmp = p;
}