Skip to content
Snippets Groups Projects

Update cours_11.md (Fonction stack_destroy simplifiée)

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -247,8 +247,8 @@ void stack_pop(stack *s, int *val) {
```C
void stack_destroy(stack *s) {
while (!stack_is_empty(*s)) {
int val = stack_pop(s);
while (*s != NULL) {
stack_pop(s);
}
}
```
Loading