BSD 4_3 release
[unix-history] / usr / src / usr.bin / uucp / index.c
index 4a1621c..598f47e 100644 (file)
@@ -1,13 +1,11 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)index.c    5.1 (Berkeley) 7/2/83";
+static char sccsid[] = "@(#)index.c    5.2 (Berkeley) 1/22/85";
 #endif
 
 #include <stdio.h>
 
 #endif
 
 #include <stdio.h>
 
-/*******
- *     char *
- *     index(str, c)   return pointer to character c
- *     char c, *str;
+/*
+ *     return pointer to character c
  *
  *     return codes:
  *             NULL  -  character not found
  *
  *     return codes:
  *             NULL  -  character not found
@@ -20,8 +18,8 @@ register char c, *str;
 {
        for (; *str != '\0'; str++) {
                if (*str == c)
 {
        for (; *str != '\0'; str++) {
                if (*str == c)
-                       return(str);
+                       return str;
        }
 
        }
 
-       return(NULL);
+       return NULL;
 }
 }