- Set a default PCM volume so that something can be heard when driver is
[AROS.git] / test / clib / spawnv.c
blobc6436087658370236b02813518ffac2462233c61
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 <path to command> <command's arguments>\n", argv[0]);
19 return 20;
22 if ((ret = spawnv(P_WAIT, argv[1], &argv[1])) == -1)
24 perror(argv[1]);
25 return 20;
28 return ret;