changeset 29 | 7abf6146898e |
parent 27 | 81a574d60c15 |
child 63 | 5a82f89d607e |
28:54addf5893ef | 29:7abf6146898e |
---|---|
8 #include <math.h> |
8 #include <math.h> |
9 |
9 |
10 double *getValues (int elements) |
10 double *getValues (int elements) |
11 { |
11 { |
12 double *values; |
12 double *values; |
13 |
|
14 int i; |
13 int i; |
15 |
14 |
16 if ((values = calloc (elements + 1, sizeof (double))) == NULL) |
15 if ((values = calloc (elements + 1, sizeof (double))) == NULL) |
17 return NULL; |
16 return NULL; |
18 for (i = elements; i >= 0; i--) |
17 for (i = elements; i >= 0; i--) |