There is a large body of literature available for embedding Python code in a C program. The official reference for embedding in C can be found at http://www.python.org/doc/current/c-api/. This may be of interest to you if you are looking to use Python code from a C program.
ning2009 commented: He help me a lot +1