summaryrefslogtreecommitdiff
path: root/source3/torture/t_strcmp.c
blob: 622769001ba4a834bfe9f60c47b25bd24ec2b6af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (C) 2003 by Martin Pool
 *
 * Test harness for StrCaseCmp
 */

#include "includes.h"

int main(int argc, char *argv[])
{
	if (argc != 3) {
		fprintf(stderr, "usage: %s STRING1 STRING2\nCompares two strings\n",
			argv[0]);
		return 2;
	}
	
	printf("%d\n", StrCaseCmp(argv[1], argv[2]));
	
	return 0;
}