/* * poly.h * * This file contains declarations for handling polynomials as linked * lists of monomials. */ /* a list node */ typedef struct _polynode { mono t; /* mono in this node */ struct _polynode *next; /* next in list */ } polynode, *poly; /* this function inserts a term at the end of a polynomial */ void insert_poly (poly *, mono); /* this function initializes a poly to empty */ void create_poly (poly *); /* this function frees storage from a poly */ void destroy_poly (poly *); /* this function gets a polynomial from standard input, returning it * as a list */ poly get_poly (void); /* this function prints a polynomial to standard output in a nice format */ void print_poly (poly);