Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kcc-4/lib/test/texec.c
There are 5 other files named texec.c in the archive. Click here to see a list.
/* Test EXEC() call
*/

main(argc, argv)
int argc; char **argv;
{
	int ret;
	if (argc < 2)
		printf("Usage: texec <progname> <arg1> ... <argn>\n");
	else if (ret = execvp(argv[1], &argv[1]))
		printf("Failed, returned %d\n", ret);
}