Home > OS >  How to call a contains the main method of binary program
How to call a contains the main method of binary program

Time:05-22

I use c language to write a program that contains the main method, after successful compilation, I want to use another c program calls it, what should I do?

CodePudding user response:

Just want a few ways to

1. The main change to normal function, can be directly call
2. Call the shell call C C program, or other similar way
3. Have a file to do the communication, the called procedure real-time monitoring the file content, appear special values on
4. Have a real communication between programs
  • Related