00001
00002
00003
00004
00005
00006
00007 #include "includes.h"
00008
00009 int main(int argc, char *argv[])
00010 {
00011 int i, ret;
00012 int iters = 1;
00013
00014
00015 lp_load("/dev/null", True, False, False, True);
00016
00017 if (argc < 3) {
00018 fprintf(stderr, "usage: %s STRING1 STRING2 [ITERS]\n"
00019 "Compares two strings, prints the results of StrCaseCmp\n",
00020 argv[0]);
00021 return 2;
00022 }
00023 if (argc >= 4)
00024 iters = atoi(argv[3]);
00025
00026 for (i = 0; i < iters; i++)
00027 ret = StrCaseCmp(argv[1], argv[2]);
00028
00029 printf("%d\n", ret);
00030
00031 return 0;
00032 }