#ifndef MM_HELP_H #define MM_HELP_H /* Given a secret code g1 and a guess g2 returns the number black in *b * and the number white in *w. Note that theses values do not change if * g1 and g2 are swapped. */ void bw (char * g1, char * g2, int * b, int * w); struct guess { char g[20]; struct guess * next; }; /* Returns the list of all possible guesses for the given parameters or * NULL if their number is too large. Each guess is allocated via malloc. * The caller must free the memory once it is no longer needed. */ struct guess * get_guesses (int col, int len, int unique); #endif