Neater method of creating a linked list



Hi. I would like to make a typedef for a structure which can be joined
up into a linked list. I include my code below. My code works, but I
have a vague suspicion that I could have declared my "spectrum" type in
a neater way. Is there a better way of doing the following?

Thanks in anticipation,

Ross-c

#include <stdlib.h>

typedef struct spectrum spectrum;

struct spectrum
{
double *magnitude;
double *phase;
int n;

double phaseNormalisation;
double magnitudeNormalisation;

spectrum *next;
};

spectrum *spectrum_make( double *data[], int N );
void spectrum_free( spectrum *s );

.


Quantcast