Skip to content
Snippets Groups Projects
Commit b658a4d0 authored by yassin.elhakoun's avatar yassin.elhakoun
Browse files

Update cours_11.md (Fonction stack_destroy simplifiée)

parent b60a03b4
No related branches found
No related tags found
1 merge request!51Update cours_11.md (Fonction stack_destroy simplifiée)
This commit is part of merge request !51. Comments created here will be created in the context of that merge request.
......@@ -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);
}
}
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment