Help with some C
    YONETANI Tomokazu 
    qhwt+dfly at les.ath.cx
       
    Sat Apr 23 00:55:08 PDT 2005
    
    
  
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.
    
    
More information about the Users
mailing list