X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..dc5e5d68dc67a7313d1821605e5a0c13aed1b192:/sbr/strindex.c diff --git a/sbr/strindex.c b/sbr/strindex.c index 03910fdf..c92da6ee 100644 --- a/sbr/strindex.c +++ b/sbr/strindex.c @@ -1,11 +1,11 @@ - -/* - * strindex.c -- "unsigned" lexical index +/* strindex.c -- "unsigned" lexical index * - * $Id$ + * 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" int stringdex (char *p1, char *p2) @@ -17,7 +17,7 @@ stringdex (char *p1, char *p2) for (p = p2; *p; p++) if (uprf (p, p1)) - return (p - p2); + return p - p2; return -1; }