How to call another separate program and passing some variables in C?
"johnny_xing" <[email protected]>
| Newsgroups | org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <DF93814AEDB44B7484B8BF8F416AA50D@johnny> |
Hi, Forgive me if my question is so simple as I am a newbie to programming.. I have two C programming and I want to call second C file within my first C program, upon calling, I need to pass some variables (like 1 or 0) to the second program. Can anyone tell me how to do? I searched system() but it seems not be able to do this. Thanks & Best Regards, Johnny -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html