#include "nonstdlib.h" // Array functions with bound checking bool getChar(Memory* heap, charPointer array, unsigned int index, char* c); // Purpose: puts the char at given index in the array into c // if index is valid for the array // (simulating c = array[index]) // Returns false if index is not valid // Returns true otherwise (and sets c accordingly) bool setChar(Memory* heap, charPointer array, unsigned int index, char c); // Purpose: sets the char at given index in the array to be c // if index is valid for the array // (simulating array[index] = c) // Returns false if index is not valid // Returns true otherwise // (and sets array element at index accordingly)