Rearranged whitespace (and comments) in all the code!
[mmh] / sbr / r1bindex.c
index 92e152d..93ec950 100644 (file)
@@ -1,12 +1,9 @@
-
 /*
  * r1bindex.c -- Given a string and a character, return a pointer
  *            -- to the right of the rightmost occurrence of the
  *            -- character.  If the character doesn't occur, the
  *            -- pointer will be at the beginning of the string.
  *
- * $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.
 char *
 r1bindex(char *str, int chr)
 {
-    char *cp;
+       char *cp;
 
-    /* find null at the end of the string */
-    for (cp = str; *cp; cp++)
-       continue;
+       /* find null at the end of the string */
+       for (cp = str; *cp; cp++)
+               continue;
 
-    /* backup to the rightmost character */
-    --cp;
-
-    /* now search for the rightmost occurrence of the character */
-    while (cp >= str && *cp != chr)
+       /* backup to the rightmost character */
        --cp;
 
-    /* now move one to the right */
-    return (++cp);
+       /* now search for the rightmost occurrence of the character */
+       while (cp >= str && *cp != chr)
+               --cp;
+
+       /* now move one to the right */
+       return (++cp);
 }