#include "wutil.h" #include "wwind.h" #include Wind* makeWind(char* dir, int sp, char* scl) { Wind *rtn = malloc(sizeof(Wind)); rtn->direction = strmcopy(dir); rtn->speed = sp; rtn->scale = strmcopy(scl); return rtn; } void freeWind(Wind* wnd) { free(wnd->direction); free(wnd->scale); free(wnd); }