X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5dd6771b28c257af405d7248639ed0e3bcdce38b..28ebf6bb835e9954c0f959b56c8abac2bf3decd5:/sbr/strindex.c diff --git a/sbr/strindex.c b/sbr/strindex.c index 9a1e4fe7..559e7549 100644 --- a/sbr/strindex.c +++ b/sbr/strindex.c @@ -1,13 +1,13 @@ - -/* - * strindex.c -- "unsigned" lexical index +/* strindex.c -- "unsigned" lexical index * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ -#include +#include "h/mh.h" +#include "strindex.h" +#include "uprf.h" int stringdex (char *p1, char *p2) @@ -19,7 +19,7 @@ stringdex (char *p1, char *p2) for (p = p2; *p; p++) if (uprf (p, p1)) - return (p - p2); + return p - p2; return -1; }