ejschwartz's picture
Add Faultless function search example
bf91e21
Raw History Blame Contribute Delete
709 Bytes
{
"original_symbol": "search_function",
"candidate_symbol": "sub_401B20",
"declarations": "#include <string.h>\ntypedef struct FunctionDefinition { char *name; char padding[40]; struct FunctionDefinition *next; } FunctionDefinition;\ntypedef struct Compiler { char padding[8]; FunctionDefinition *function_list; } Compiler;\nCompiler *get_current_compiler(void);\n",
"stubs": "typedef struct Compiler Compiler;\nCompiler *get_current_compiler(void) { return 0; }\nint strcmp(const char *a, const char *b) { return 0; }\n",
"callees": {
"sub_401A40": "get_current_compiler",
"strcmp": "strcmp"
},
"interfaces": {
"original_prototype": "void *search_function(char *identifier);"
}
}