Skip to content
Snippets Groups Projects

Update cours_11.md (Fonction void qui retournait un int)

1 unresolved thread
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -216,12 +216,12 @@ void stack_peek(stack s, int *val) {
@@ -216,12 +216,12 @@ void stack_peek(stack s, int *val) {
. . .
. . .
```C
```C
void stack_pop(stack *s, int *val) {
int stack_pop(stack *s, int *val) {
stack_peek(*s, val);
stack_peek(*s, val);
element *tmp = *s;
element *tmp = *s;
*s = (*s)->next;
*s = (*s)->next;
free(tmp);
free(tmp);
return val;
return *val;
}
}
```
```
Loading