added test.c
parent
f7c8686110
commit
689307ef9e
|
@ -0,0 +1,19 @@
|
|||
#include <stdio.h>
|
||||
|
||||
void puts2() {
|
||||
asm("pop %rbp");
|
||||
goto *(&puts);
|
||||
//return 0;
|
||||
}
|
||||
|
||||
void printf2() {
|
||||
asm("pop %rbp");
|
||||
goto *(&printf);
|
||||
}
|
||||
|
||||
int main (int argc, char **argv) {
|
||||
//puts2(argv[1]);
|
||||
puts2(argv[0]);
|
||||
printf2("%i hello %s %s\n", argc, argv[0], "yeetcreeper");
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue