changeset 29 | 7abf6146898e |
parent 27 | 81a574d60c15 |
child 47 | 63adb261de90 |
28:54addf5893ef | 29:7abf6146898e |
---|---|
19 T *make_list (int elements, int rand_max) |
19 T *make_list (int elements, int rand_max) |
20 { |
20 { |
21 int i; |
21 int i; |
22 |
22 |
23 T *t; |
23 T *t; |
24 |
|
25 T *actual; |
24 T *actual; |
26 |
|
27 T *first = NULL; |
25 T *first = NULL; |
28 |
26 |
29 srand (time (NULL)); |
27 srand (time (NULL)); |
30 |
28 |
31 if ((t = malloc (sizeof (T) + 1)) == NULL) { |
29 if ((t = malloc (sizeof (T) + 1)) == NULL) { |