summaryrefslogtreecommitdiffstats
path: root/source4/torture/t_strcmp.c
blob: 15d000c98f9d10e3121cef73d1d9337b1c37facd (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_m
 */

#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_m(argv[1], argv[2]));
	
	return 0;
}