#define MAXSIZE 100 typedef struct { unsigned int size; int arr[MAXSIZE]; } SortedArray; /* print out the contents of "s", for debugging */ void SA_Print ( SortedArray s ) ; /* return the item from position "pos" in "s" */ int SA_Index( SortedArray s, unsigned int pos ) ; /* find the position of "val" in "s"; MAXSIZE+1 if it's not there. */ unsigned int SA_Search( SortedArray s, int val ) ; /* Initialize the data structure */ void SA_Init ( SortedArray *p ) ; /* Put val into the array in the right spot. */ void SA_Insert ( SortedArray *p, int val ) ;