Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
SegFault?
SUBMITTED BY:
Guest
DATE:
Dec. 20, 2013, 6:46 p.m.
FORMAT:
C++
SIZE:
340 Bytes
Raw
Download
Tweet
HITS:
18063
Go to comments
Report
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
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus