struct SigParameter signalchar
This semicolon does not fit. Perhaps this is a mistake.
Then When assigning a value to a pointer to a character, you must allocate memory for that pointer. Otherwise, it will save the value in the register memory.
s1.signalchar.name = "Sinus"; s2.signalchar.name = "Rect";
You can allocate memory for this pointer variable and do the job.
Then you call the function
printParameter(activeSignal);
But there is a function,
printParameters(activeSignal);
source share