From mboxrd@z Thu Jan 1 00:00:00 1970 From: "johnny_xing" Subject: How to call another separate program and passing some variables in C? Date: Tue, 14 Oct 2008 18:48:06 +0800 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: References: In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: linux-c-programming@vger.kernel.org Hi, =46orgive me if my question is so simple as I am a newbie to programmin= g.. I have two C programming and I want to call second C file within my fir= st C program, upon calling, I need to pass some variables (like 1 or 0) to t= he second program. Can anyone tell me how to do? I searched system() but it seems not be a= ble to do this. Thanks & Best Regards, =A0 Johnny -- To unsubscribe from this list: send the line "unsubscribe linux-c-progr= amming" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html