#include "array_int.h" void fill_1d_int_all(int array[], int low, int high) { int i; for (i = low; i <= high; i++) get_int(&array[i]); } void write_1d_int(int array[], int low, int high) { int i; for (i = low; i <= high; i++) printf("%d ", array[i]); } void fill_1d_int_part(int array[], int low, int high, int *actual, int stop_val) { int temp; do { get_int(&temp); if ((temp != stop_val) && (low <= high)) { array[low] = temp; low++; } } while ((temp != stop_val) && (low <= high)); *actual = low - 1; if (low > high) printf("\nArray is full - no more input permitted.\n"); }