Revert "usbd - Do not start moused by default when a usb mouse is connected"
[dragonfly.git] / contrib / sendmail-8.14 / libsm / t-strrevcmp.c
blobfb8fb467d04246d46945a2cf01ca36fc7c7494d1
1 /*
2 * Copyright (c) 2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 */
10 #include <sm/gen.h>
11 SM_IDSTR(id, "@(#)$Id: t-strrevcmp.c,v 1.3 2001/09/11 04:04:49 gshapiro Exp $")
13 #include <sm/exc.h>
14 #include <sm/io.h>
15 #include <sm/string.h>
16 #include <sm/test.h>
18 int
19 main(argc, argv)
20 int argc;
21 char **argv;
23 char *s1;
24 char *s2;
26 sm_test_begin(argc, argv, "test string compare");
28 s1 = "equal";
29 s2 = "equal";
30 SM_TEST(sm_strrevcmp(s1, s2) == 0);
32 s1 = "equal";
33 s2 = "qual";
34 SM_TEST(sm_strrevcmp(s1, s2) > 0);
36 s1 = "qual";
37 s2 = "equal";
38 SM_TEST(sm_strrevcmp(s1, s2) < 0);
40 s1 = "Equal";
41 s2 = "equal";
42 SM_TEST(sm_strrevcmp(s1, s2) < 0);
44 s1 = "Equal";
45 s2 = "equal";
46 SM_TEST(sm_strrevcasecmp(s1, s2) == 0);
48 s1 = "Equal";
49 s2 = "eQuaL";
50 SM_TEST(sm_strrevcasecmp(s1, s2) == 0);
52 return sm_test_end();