added test.c

master
bx 2022-09-15 19:25:51 +01:00
parent f7c8686110
commit 689307ef9e
1 changed files with 19 additions and 0 deletions

19
test.c 100644
View File

@ -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;
}