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

From: Oliver Schmidt <>
Date: 2011-01-25 12:12:30
Hi Uz,

>> Technically the function could be as well typed 'void' - if it returns
>> than it's already clear that there was an error ;-)

> Having an error code allows an "explanation" of the failure.

The execl() function and friends just return -1 and set errno for more
details. I presumed that exec() would behave the same...

>> If you have no issue with a non-standard function in a standard header
>> than this would be the place to go...

> Actually, we could implement execl() and friends using exec(). It would not be
> completely identical to standard execl() but similar enough for a 6502 :-)

I see the argument. So it's unistd.h.

> Some functions are initialy implemented on one platform and then spread,
> others are designed to be implemented by all (or most) platforms from start
> on.

Okay, so it's for just for historical reasons.

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 25 12:12:38 2011

This archive was generated by hypermail 2.1.8 : 2011-01-25 12:12:41 CET