annotate return__.c @ 239:c2a96b326f61

repos & copyright maintenance
author thomask
date Thu, 13 Jan 2005 13:59:39 +0000
parents 94b746f24b50
children 6cd84461e17b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
1 /* svn://svn.kuehne.cn/dstress/return__.c
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
2 *
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
3 * execute the first argument and print the return code
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
4 *
239
c2a96b326f61 repos & copyright maintenance
thomask
parents: 82
diff changeset
5 * Copyright (C) 2004, 2005 Thomas Kuehne
82
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
6 *
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
7 * This program is free software; you can redistribute it and/or modify
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
8 * it under the terms of the GNU General Public License as published by
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
10 * (at your option) any later version.
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
11 *
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
12 * This program is distributed in the hope that it will be useful,
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
15 * GNU General Public License for more details.
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
16 *
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
17 * You should have received a copy of the GNU General Public License
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
18 * along with this program; if not, write to the Free Software
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
20 */
94b746f24b50 added ?DSTRESS_FLAGS? support
thomask
parents: 72
diff changeset
21
72
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
22 #include <stdio.h>
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
23 #include <stdlib.h>
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
24
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
25 int main(int argc, char *argv[]){
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
26 int returnCode = system(argv[1]);
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
27 printf("%d\n", returnCode);
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
28 return 0;
b0e95b878322 added segfault detection support
thomask
parents:
diff changeset
29 }