Mercurial > baum
comparison baum.c @ 27:1c3dd1e88bdf
empty stack at the end (thanks valgrind to show me this)
author | meillo@marmaro.de |
---|---|
date | Thu, 21 Feb 2008 10:09:36 +0100 |
parents | f0856c177403 |
children | 88a51653db83 |
comparison
equal
deleted
inserted
replaced
26:f0856c177403 | 27:1c3dd1e88bdf |
---|---|
207 | 207 |
208 if (c == '(') { /* value */ | 208 if (c == '(') { /* value */ |
209 fscanf(file, "%d)", &value); | 209 fscanf(file, "%d)", &value); |
210 } | 210 } |
211 | 211 |
212 } | |
213 | |
214 /* empty stack */ | |
215 while (stack != NULL) { | |
216 pull(); | |
212 } | 217 } |
213 | 218 |
214 fclose(file); | 219 fclose(file); |
215 } | 220 } |
216 | 221 |