2 * Copyright (C) 2003 by Martin Pool
4 * Test harness for strstr_m
9 int main(int argc, char *argv[])
16 /* Needed to initialize character set */
17 lp_load("/dev/null", True, False, False);
20 fprintf(stderr, "usage: %s STRING1 STRING2 [ITERS]\n"
21 "Compares two strings, prints the results of strstr_m\n",
26 iters = atoi(argv[3]);
28 for (i = 0; i < iters; i++) {
29 ret = strstr_m(argv[1], argv[2]);