Add TD8
This commit is contained in:
parent
7c934bcefb
commit
453d88282f
8 changed files with 588 additions and 0 deletions
15
content/secu_logicielle/td8-gdb/files/stack.c
Normal file
15
content/secu_logicielle/td8-gdb/files/stack.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int f(int *x) {
|
||||
return *x+1;
|
||||
}
|
||||
|
||||
int g(int y) {
|
||||
int z = y+1;
|
||||
return f(&z);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
printf("%d\n", g(1));
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue