- Set a default PCM volume so that something can be heard when driver is
[AROS.git] / test / clib / system.c
blob6ef82611cc36891852b687a2e55a13b9630a95cc
1 /*
2 Copyright © 2009, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Test program for the libc's system() function.
6 Lang: English
7 */
9 #include <stdio.h>
10 #include <stdlib.h>
12 int main(int argc, char *argv[])
14 int ret;
16 if (argc < 2)
18 fprintf(stderr,
19 "Usage: %s <command string>\n"
20 " only first command is used, quote command if it contains spaces\n",
21 argv[0]
23 return 20;
26 ret = system(argv[1]);
27 if (ret == -1)
29 perror(argv[1]);
30 return 20;
33 return ret;