blob: 0ad033de8991f66598f38d7f97d3142b91affdd7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <substitute.h>
#include <stdio.h>
#include <assert.h>
#include <dlfcn.h>
int main() {
const char *foundation = "/System/Library/Frameworks/Foundation.framework/Foundation";
dlopen(foundation, RTLD_LAZY);
const char *names[] = { "_setshortValueWithMethod" };
substitute_sym *syms[1];
assert(!substitute_find_syms(foundation, names, syms, 1));
printf("%p\n", syms[0]);
}
|