Man, who let this moron near printf()?! :)
--HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402224
This commit is contained in:
parent
92643bac52
commit
c3143b8b9c
1 changed files with 4 additions and 3 deletions
|
@ -19,8 +19,9 @@ int main(int argc, char *argv[])
|
||||||
fntype fn = NULL;
|
fntype fn = NULL;
|
||||||
|
|
||||||
if (argc != 3) {
|
if (argc != 3) {
|
||||||
fprintf(stderr, "USAGE: %s <library> <functionname>\n");
|
const char *app = argv[0];
|
||||||
fprintf(stderr, " %s --hello <library with puts()>\n");
|
fprintf(stderr, "USAGE: %s <library> <functionname>\n", app);
|
||||||
|
fprintf(stderr, " %s --hello <lib with puts()>\n", app);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@ int main(int argc, char *argv[])
|
||||||
symname, SDL_GetError());
|
symname, SDL_GetError());
|
||||||
retval = 4;
|
retval = 4;
|
||||||
} else {
|
} else {
|
||||||
printf("Found %s in %s at %p\n", symname, libname);
|
printf("Found %s in %s at %p\n", symname, libname, fn);
|
||||||
if (hello) {
|
if (hello) {
|
||||||
printf("Calling function...\n");
|
printf("Calling function...\n");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue