]> diplodocus.org Git - nmh/blobdiff - sbr/brkstring.c
Put, rather than print, single characters.
[nmh] / sbr / brkstring.c
index d2f71aa32074a5a92ba8810da8f2c31523f62156..bdc8c30ac91cea9b10f80ebfe01e95fd5290fa5e 100644 (file)
@@ -3,8 +3,6 @@
  * brkstring.c -- (destructively) split a string into
  *             -- an array of substrings
  *
  * brkstring.c -- (destructively) split a string into
  *             -- an array of substrings
  *
- * $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.
  * 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.
@@ -61,7 +59,7 @@ brkstring (char *str, char *brksep, char *brkterm)
        if (!c || brkany (c, brkterm)) {
            *s = '\0';
            broken[i] = NULL;
        if (!c || brkany (c, brkterm)) {
            *s = '\0';
            broken[i] = NULL;
-           return broken;
+           break;
        }
 
        /* set next start addr */
        }
 
        /* set next start addr */
@@ -71,7 +69,7 @@ brkstring (char *str, char *brksep, char *brkterm)
            ;   /* empty body */
     }
 
            ;   /* empty body */
     }
 
-    return broken;     /* NOT REACHED */
+    return broken;
 }
 
 
 }