How to set scene's frame programmatically and update animation?

Hello!
I’m using embedded BGE (blender player) in my app.
If I set current frame on timeline (for example, 100), save blend-file and open in player it render scene on frame 100.
How can I change frame programmatically and update scene with evaluation all animations until this frame?

Using Python, I can do this by frame_set() function. But I can’t find right function in C/C++ sources. :frowning: