linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to call another separate program and passing some variables in C?
@ 2008-10-14 10:48 johnny_xing
  2008-10-14 11:12 ` Re : " korfuri
  0 siblings, 1 reply; 8+ messages in thread
From: johnny_xing @ 2008-10-14 10:48 UTC (permalink / raw)
  To: linux-c-programming

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-10-16  0:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 10:48 How to call another separate program and passing some variables in C? johnny_xing
2008-10-14 11:12 ` Re : " korfuri
2008-10-15  6:27   ` johnny_xing
     [not found]     ` <4f5c2ba10810142334o6dbca046r52eb267c8da28aa9@mail.gmail.com>
2008-10-15  8:31       ` johnny_xing
2008-10-15  9:05         ` Per Jessen
     [not found]       ` <5F844C5CE0B949348F25CDBF9B3FA11D@johnny>
     [not found]         ` <4f5c2ba10810150150k153b051fod1440a14037cd16c@mail.gmail.com>
     [not found]           ` <4f5c2ba10810150152s6c6307fi1fde09505b31a8bc@mail.gmail.com>
2008-10-15  9:10             ` johnny_xing
     [not found]               ` <4f5c2ba10810150227k44321974n4fe51ff28e470e2c@mail.gmail.com>
2008-10-15  9:35                 ` johnny_xing
2008-10-16  0:41               ` Jianjun Kong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).