What in C is equal to VB's LoadResData

I have a exe in my resource, in VB, I would use LoadResData to load the exe into a char array. In C, how can I do this? I have the .res and it compiles fine, but I want to read each byte either into an array (not really, in case of big EXE's), I wanna write it out to a file.

I have no use for them, if I am developing a proffesional app, I would use them, but right now I am just curious about how they work, I just wanna play around with them, write my own, and probably never touch them again, :)

Then again what type of app hides an exe inside it, only to dump it later?

The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.