Re: [cc65] Calling another program: exec() ?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2011-01-25 09:35:37
Hi!

On Mon, Jan 24, 2011 at 06:36:09PM +0100, Oliver Schmidt wrote:
> The last statement of the code isn't an RTS but a indirect JMP. The
> location for the JMP is exported so "everybody" can patch it's own
> handler in there. The default handler is just an RTS.

Yes, good idea. So how about

        int exec (const char* program, const char* cmdline);

as prototype? Not sure in which header file it should go. POSIX systems have
the exec() family of functions in unistd.h.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 25 09:35:44 2011

This archive was generated by hypermail 2.1.8 : 2011-01-25 09:35:48 CET