#include#include #define ERROR -1#define OK 1typedef struct{ char *ch; int length;} heapstring;typedef struct{ char item[100][80]; int last;}wordlisttype;typedef int status;status init(heapstring &t){ t.ch=(char *)malloc(sizeof(char)); return 1;}status strassign(heapstring &t,char *chars){ int i,j; char *c; init(t); if (t.ch) free(t.ch); for (i=0,c=chars; *c; ++i,++c) if (!i) { t.ch=NULL; t.length =0; } else if (!(t.ch=(char *)malloc(i*sizeof(char)))) return ERROR; else { for (j=0;j