DragonFly BSD
DragonFly users List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Help with some C


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Sat, 23 Apr 2005 16:54:59 +0900

Hi,
On Sat, Apr 23, 2005 at 02:28:09AM -0500, PJ Hyett wrote:
> I'm trying my hand with a little unix programming, but my second
> execvp in main() below doesn't appear to be working correctly.
> A sample call to this would be ./rungenerator 20 1 and the output is as follows:

		:

>   args[0]="./generate1";
>   args[2]=argv[1];
>   args[3]=argv[2];
>   args[4]="0";

The last line should be:

	args[4] = NULL;

Cheers.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]