How to convert function to unsigned char array (*void pointer) I'm sorry if I do not understand correctly what is *void pointer
For example i have functions like this
Do you mean while it is still text, or do you mean the function after it has been compiled and turned into binary executable?
I suspect this is related to your other thread. Again, a large part of the issue here is that we don't know what you're trying to do. What you just asked makes no sense.
Raw text in an array with a pointer to it is useless to you.
Raw binary in an array with a pointer to it is almost certainly also useless to you.
What are you trying to do? Tell us what you're trying to do.
1. I need to convert function to array of unsigned char.
2. encrypt this array
3. Save Encrypted array in header file
4. Include header file in my code
5. decrypt the array from header file
6. Runtime use this array as function
Thank you @Repeater so much, and sorry for bad explaination.
You need to take the function, translate it into assembly code (or make the compiler do it and then look at that), turn that assembly code into hex, type that hex into your source code.
To do this, you will need to understand assembly code, and understand how your particular OS calls functions.