All pastes #23214 Raw Edit

Something

public text v1 · immutable
#23214 ·published 2005-09-17 19:34 UTC
rendered paste body

#include <stdio.h>


void myFunc()
{
        //printf("Hello myFunc()\n");
        return;
}

int main()
{
        void *funcPtr = myFunc;
        char *code = (char *)malloc(sizeof(char));
        int counter = 0;

        while(1)
        {
                memcpy((void *)code, funcPtr + counter, 1);
                printf("myFunc(0x%X)+%d \t 0x%X\n", funcPtr, counter, *code);
                if(*code == 0xFFFFFFC3)
                        break;
                counter ++;
        }

}