Put the library close function back into miami.library's function table.
[AROS.git] / test / clib / spawnvp.c
blob9286e7ef6ec9b70cdd55cb2c81f190f0fbcfdaee
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Test program for the libc's spawnv() function.
6 Lang: English
7 */
9 #include <process.h>
10 #include <stdio.h>
12 int main(int argc, char *argv[])
14 int ret;
16 if (argc < 2)
18 fprintf(stderr, "Usage: %s <command with or without full path> <command's arguments>\n", argv[0]);
19 return 20;
22 if ((ret = spawnvp(P_WAIT, argv[1], &argv[1])) == -1)
24 perror(argv[1]);
25 return 20;
28 return ret;