/** * TEMPLATE.c * A template for an implementation of linear structures. */ // +---------+-------------------------------------------------------- // | Headers | // +---------+ #include // For malloc #include "linear.h" // Signatures of the methods we provide. // +-------+---------------------------------------------------------- // | Types | // +-------+ // +---------+-------------------------------------------------------- // | Helpers | // +---------+ // +----------------------------+------------------------------------- // | Constructors & Destructors | // +----------------------------+ struct linear * construct (int minimum_capacity) { return NULL; // STUB } // construct void destruct (struct linear *linear) { // STUB } // destruct // +-----------+------------------------------------------------------ // | Observers | // +-----------+ int is_empty (struct linear *linear) { return 0; // STUB } // is_empty int is_full (struct linear *linear) { return 0; // STUB } // is_full char * peek (struct linear *linear) { return NULL; // STUB } // peek // +----------+------------------------------------------------------- // | Mutators | // +----------+ int add (struct linear *linear, char *str) { return 0; // STUB } // add char * get (struct linear *linear) { return NULL; // STUB } // get void clear (struct linear *linear) { // STUB } // clear