[SWLUG] calling a C programme from

Dick Porter dick at acm.org
Fri Aug 9 19:49:08 UTC 2002


On Fri, 2002-08-09 at 18:09, STEPHEN CONSTANTINOU wrote:
> 
> ...  a C programme
> 
> 
> I have been learning C programming using Borlands C++ 
> version 3, DOS compiler.
> 
> I want to call a C programme from a C programme but have
> not managed to find an "include" or function that enables this.
> 
> I studied all the functions in the ?"DOS.H" header and many others.
> 
> Is this possible ?

If you were using a real operating system, you would use execve(2) or
one of it's wrappers.  If you wanted to run the new and old programs
together, you would call fork(2) first.

I've no idea how it's done on toy CP/M ripoffs.

- Dick






More information about the Swlug mailing list