void returnVans(TTRAIN * train) { if (train == NULL)return; TVAN* now = train -> m_Start; train->m_Count = 0; train->m_Start = NULL; while(now!=NULL){ free(now -> m_To); TVAN* temp = now; free(temp); now = temp -> m_Next; } return; }