root/ifeq__.c

Revision 251:6cd84461e17b, 1.0 kB (checked in by thomask, 7 years ago)

enabled new "dstress.c" test tool

Line 
1 /* svn://svn.kuehne.cn/dstress/ifeq__.c
2  *
3  * compare the 2 input arguments (shell & OS independent)
4  * [deprecated: use dstress.c]
5  *
6  * Copyright (C) 2004, 2005 Thomas Kuehne
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */                                             
22
23 #include <string.h>
24
25 int main(int argc, char *argv[]){
26     return strcmp(argv[1], argv[2]);
27 }
Note: See TracBrowser for help on using the browser.