p[0]->x = 3.14; p[0]->y = 2.78;
p[1]->x = 12.1; p[1]->y = -0.3;
That should be
p[0].x = 3.14; p[0].y = 2.78;
p[1].x = 12.1; p[1].y = -0.3;
Thanks to Ian A Taylor for bringing this to my attention.
free_matrix()
,
we have
free_vector(a);
a = NULL;
The a = NULL
is redundant since
free_vector()
not only frees the memory
associated with a
, but it also sets
a
to NULL
.
Programming Projects in C |