+/*
+ Is the coefficient COEF contained in the list of coefficients
+ COEF_LIST?
+ */
+static int
+has_coefficient (const struct pspp_coeff **coef_list, const struct pspp_coeff *coef,
+ size_t n)
+{
+ size_t i = 0;
+
+ while (i < n)
+ {
+ if (coef_list[i] == coef)
+ {
+ return 1;
+ }
+ i++;
+ }
+ return 0;
+}