projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rearranged whitespace (and comments) in all the code!
[mmh]
/
sbr
/
strindex.c
diff --git
a/sbr/strindex.c
b/sbr/strindex.c
index
9a1e4fe
..
92245b2
100644
(file)
--- a/
sbr/strindex.c
+++ b/
sbr/strindex.c
@@
-1,4
+1,3
@@
-
/*
* strindex.c -- "unsigned" lexical index
*
/*
* strindex.c -- "unsigned" lexical index
*
@@
-12,14
+11,14
@@
int
stringdex (char *p1, char *p2)
{
int
stringdex (char *p1, char *p2)
{
- char *p;
+ char *p;
- if (p1 == NULL || p2 == NULL)
- return -1;
+ if (p1 == NULL || p2 == NULL)
+ return -1;
- for (p = p2; *p; p++)
- if (uprf (p, p1))
- return (p - p2);
+ for (p = p2; *p; p++)
+ if (uprf (p, p1))
+ return (p - p2);
- return -1;
+ return -1;
}
}